You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/10/22 07:47:50 UTC

[jira] Resolved: (HARMONY-4756) [classlib][swing] JFrame.pack() sets window size incorrectly

     [ https://issues.apache.org/jira/browse/HARMONY-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-4756.
--------------------------------------

    Resolution: Fixed

The patch has been applied. Please verify.

> [classlib][swing] JFrame.pack() sets window size incorrectly
> ------------------------------------------------------------
>
>                 Key: HARMONY-4756
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4756
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vasily Zakharov
>            Assignee: Alexey Petrenko
>         Attachments: harmony-4756-fix.patch, Harmony.jpg, RI.jpg
>
>
> If JFrame.pack() is used to set window size, some contents remain hidden on Harmony, while RI sets the window size to fit content size.
> Here's the simple reproducer:
> import javax.swing.JEditorPane;
> import javax.swing.JFrame;
> public class Test {
>     public static void main(String argv[]) {
>         try {
>             JFrame frame = new JFrame("Test");
>             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>             frame.getContentPane().add(new JEditorPane("text/html", "1<br>2<br>3<br>4"));
>             frame.pack();
>             frame.setVisible(true);
>         } catch (Exception e) {
>             e.printStackTrace(System.out);
>         }
>     }
> }
> The attached screenshots demonstrate the problem.

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