java applet question

Started by
0 comments, last by Simian Man 17 years, 10 months ago
I'm trying to work on a Java applet, but after compiling it and saving the class file in the same directory. I run it and everything's fine. but then I make some changes, recompile, and run the applet again, and it doesn't change. I've even deleted the class file, closed the browser, and reopened it and it still displays the page like before. here's my HTML: <html> <head> <title>Applet Test</title> </head> <body>


<Applet Code="AppletPractice.class" width=400 height=200> </Applet> </body> </html>


import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JButton;

public class AppletPractice
extends Applet
implements ActionListener
{
JButton button;
int numText;

public void init()
{
}

public void stop()
{
}

public void paint(Graphics g)
{
g.drawString("Hello World", 20, 40);
}

public void actionPerformed(ActionEvent e)
{
}
}

thanks
Advertisement
Browsers often keep things in caches so that they load faster. Try hitting the "Refresh" button. If that does not work, most browsers have an option to clear the cache somewhere. You could try that.

Hope that helps.

This topic is closed to new replies.

Advertisement