You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2008/02/15 22:48:09 UTC

[jira] Created: (HARMONY-5520) [tools][appletviewer] appletviewer doesn't change the size of initial frame if it was resized by applet

[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.


[jira] Resolved: (HARMONY-5520) [tools][appletviewer] appletviewer doesn't change the size of initial frame if it was resized by applet

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov resolved HARMONY-5520.
--------------------------------------

    Resolution: Fixed

Fix was committed at r 628180.

> [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.