Java Codes

Circle

package Applet;
import java.awt.*;
import java.applet.Applet;
import java.awt.Graphics;

public class SecondApplet extends Applet {

public void paint(Graphics g)
{
    g.setColor(Color.BLUE);
    g.fillOval(20, 20, 60, 60);
}
}




Posted by Chandresh Mahajan
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Program: Applet

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (39)
    • ▼  October (7)
      • Hello World
      • Circle
      • Copying byte from one file to another file.
      • Reading bytes from File
      • Writing byte to File
      • Copying charecter from one File to another File
      • Reading and Writing using random access file.
    • ►  November (29)
    • ►  December (3)

Programs

General (12) Applet (8) File (5) Thread (5) GUI Based Program (4) Event Handling (2) Exception (2) Swing (1)

Popular Posts

  • Simple Calculator Using Applet
  • Addition of Two Numbers Using Applet
  • CheckBox Demonstration
  • Thread Methods : yield(),stop(),sleep()
  • Display a Label Contaning Both an Icon and A String
  • Button Demonstration

About Me

Chandresh Mahajan
View my complete profile
Picture Window theme. Powered by Blogger.