Monday, 13 July 2015

Java Programs[Important]


Write an Applet that displays a simple message.

Program :

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

/* <applet </applet> */ code = “Hello  ” width = 200 height = 60 >

public class Hello   extends Applet {
 public void paint(Graphics g) 
g.drawString(“Hello   ”, 10, 100); 
}
 }