Develop an applet that displays a simple message.
Program Code:
import java.awt.*;
import java.applet.*;
/*<applet code = “HelloJava” width = 200 height = 60 > </applet>*/
public class HelloJava extends Applet {
public void paint(Graphics g) {
g.drawString(“Hello Java”, 10, 100);
}
}
Post A Comment:
0 comments: