harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5520) [tools][appletviewer] appletviewer doesn't change the size of initial frame if it was resized by applet
Date Fri, 15 Feb 2008 21:48:09 GMT
[tools][appletviewer] appletviewer doesn't change the size of initial frame if it was resized
by applet
-------------------------------------------------------------------------------------------------------

                 Key: HARMONY-5520
                 URL: https://issues.apache.org/jira/browse/HARMONY-5520
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports, JDK
         Environment: all
            Reporter: Alexei Zakharov
            Assignee: Alexei Zakharov


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message