Skip to main content

Posts

Showing posts with the label Coding

Circle Square and Triangle in Java for GUI

Java Code of Shapes for Graphical User Interface: For Circle: import java.awt.*; import java.awt.geom.*; /**  * A circle that can be manipulated and that draws itself on a canvas.  *   * @author  Michael Kšlling and David J. Barnes  * @version 2011.07.31  */ public class Circle {     private int diameter;     private int xPosition;     private int yPosition;     private String color;     private boolean isVisible;          /**      * Create a new circle at default position with default color.      */     public Circle()     {         diameter = 68;         xPosition = 230;         yPosition = 90;         color = "blue";     }     /**      * Make...

Program to Make Canvas in Java For GUI

GRAPHICAL USER INTERFACE : CANVAS CLASS: import javax.swing.*; import java.awt.*; import java.util.List; import java.util.*; /**  * Canvas is a class to allow for simple graphical drawing on a canvas.  * This is a modification of the general purpose Canvas, specially made for  * the BlueJ "shapes" example.   *  * @author: Bruce Quig  * @author: Michael Kšlling (mik)  *  * @version 2011.07.31  */ public class Canvas {     // Note: The implementation of this class (specifically the handling of     // shape identity and colors) is slightly more complex than necessary. This     // is done on purpose to keep the interface and instance fields of the     // shape objects in this project clean and simple for educational purposes.     private static Canvas canvasSingleton;     /**      * Factory method to get t...

Java Program to Make Student Progress

Student Progress The First Class is Student Class:-   public class Student { private string first_name; //private String last_name; private string father_name; private string Address; private string chem_marks; private String phy_marks; private String bio_marks; private String math_marks; private String eng_marks; public Student(string first_name,String father_name , String Address , String chem_makrs , String phy_marks , String bio_marks , String math_marks , String eng_marks ) { super(); this.first_name = first_name; this.father_name= father_name; this.Address = Address; this.chem_marks= chem_marks; this.phy_marks= phy_marks; this.bio_marks= bio_marks; this.math_marks= math_marks; this.eng_marks= eng_marks; } public String getFirst_name() { return first_name; } public void setFirst_name(String first_name) { this.first_name = first_name; } /*public String getLast_name() { return last_na...

Java Projects

How to Make Basic Java programs: Java is one of the best programming language to make GUI and many other departmental software for making computer handling software . Through java programming you can make games , calculators , ticket Machine and related software because it deals with some wide range of built in functions which every programming language do exist.. Here below is the Code through which you can easily make some basic four programs : Even or Odd : import java.util.Scanner; public class EvenorOdd { public static void main(String Args[]) { int x; System.out.println( "Enter the number" ); Scanner input = new Scanner(System.in); x=input.nextInt(); if (x % 2 ==0) System.out.println( "The number is even" ); else System.out.println( "The number is odd" ); } } Radius :

Beginning In C++

Basic Directories Information : The Basic language use for computer software development , Management Programs and all related to coding. C++ is a hybrid language and can provide a simple way of coding. In this Blog i am going to tell you about the basic primitive type directories which are also shown in the given video below C++ is a basic language to understand and is consisting the basic programming layouts to focus on it to become a PROGRAMMER guru. The Link is Given Below How to use a C++ Built-in Directories to be used in the programs  https://www.youtube.com/watch?v=njLxBBwDkS4 C++ is one of the oldest language and covers all the basic Languages syntax to implement and focusing it to come with C++  most of the code for general-purpose operating system is written always in C++..

Skype Update

T he Big Update is here !     Skype launches it latest update in which skype introduce its real time CODE-EDITOR in which one can perform its command on coding. As we know skype is a for video calling application using world wide. Skype just launch it for online interviews. Now, the programmers are supposed to use it as worthy as i seem to be. We hope this feature make it much better then before.Keep udpating your app and keep sharing.