I've been experimenting with this Java applet and Firefox, but after I recompile the code and refresh/reopen the page, the changes are not reflected in the browser. Why's that?
-
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);
-
}
-
}
-
When I comment or uncomment one of the lines (8 thru 10), the changes are not reflected in the browser. Why is this?
Here is the code in the HTML file I'm using.
-
<html>
-
<head>
-
<title>Java Test Program</title>
-
</head>
-
<body>
-
<applet code="Program.class" height=500 width=500></applet>
-
<div>TEST TEXT</div>
-
</body>
-
</html>
-