Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
all
-
Patch Available
Description
The current implementation of appletviewer is unable to correctly change the size of the main frame if it was resized by applet's code. Please see the example below.
MyFrame.java
—
import java.awt.*;
import java.applet.Applet;
public class MyFrame extends Applet {
public void init()
{ setSize(600, 600); }public void paint(Graphics g)
{ g.clearRect(0, 0, 400, 400); g.setColor(Color.BLUE); g.drawRect(10, 60, 350, 350); g.drawString("Mama", 80, 80); }}
—
You can observe this bug if you try to run the Clock demo applet from RI 1.5 distribution.