Java Codes

Hello World

import java.applet.*;
import java.awt.*;



public class HelloWorldApplet extends Applet
{
   public void paint(Graphics g)
   {
      g.drawString("Hello World",25,50);
   }
}

/*<APPLET CODE="HelloWorldApplet" WIDTH="800" HEIGHT="500">
</APPLET>*/

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

No comments:

Post a Comment

Newer 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.