Expand|Select|Wrap|Line Numbers
- import java.applet.*;
- import java.awt.*;
- public class Program extends Applet
- {
- public void paint (Graphics g)
- {
- g.drawString("Hello World!", 125, 225);
- //g.drawString("Good morning America.", 100, 100);
- g.drawString("Hamster BBQ.", 50, 50);
- }
- }
Here is the code in the HTML file I'm using.
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>Java Test Program</title>
- </head>
- <body>
- <applet code="Program.class" height=500 width=500></applet>
- <div>TEST TEXT</div>
- </body>
- </html>