Z
Z
The following simple JApplet doesn't repaint itself when the window is
occluded and then exposed or when it's minimized and then maximized.
I get the same results whether I use appletviewer or my browser.
What am I doing wrong?
JAppletTest.java :
public class JAppletTest extends javax.swing.JApplet
{
public void paint(java.awt.Graphics g)
{
super.paint(g);
g.drawString("Hello world!", 50, 50);
}
}
JAppletTest.html :
<html>
<applet code="JAppletTest" width="200" height="100">
</applet>
</html>
occluded and then exposed or when it's minimized and then maximized.
I get the same results whether I use appletviewer or my browser.
What am I doing wrong?
JAppletTest.java :
public class JAppletTest extends javax.swing.JApplet
{
public void paint(java.awt.Graphics g)
{
super.paint(g);
g.drawString("Hello world!", 50, 50);
}
}
JAppletTest.html :
<html>
<applet code="JAppletTest" width="200" height="100">
</applet>
</html>