Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7124213

[macosx] pack() does ignore size of a component; doesn't on the other platforms.

    Details

    • Subcomponent:
    • Resolved In Build:
      b61
    • CPU:
      generic
    • OS:
      os_x

      Backports

        Description

        http://java.net/jira/browse/MACOSX_PORT-769 submitted 2011/12/08 by Yuri Nesterenko
        Target functionality of this test (included) seems working (well, not exactly, see the next bug) but there's a layout issue. We have
        <ul class=&quot;alternate&quot; type=&quot;square&quot;>
        .a Frame without defined size;
        .added there a Panel with BorderLayout() also without set size;
        .added there a ScrollPane with setSize(200,200);
        .added to that, a Component with setPreferredSize(300,300).Now, frame.pack() on this port does collapse the Frame to the absolute minimum. Should it be so? On other platforms it has size slightly bigger than 200,200.
        Setting preferred size (not minimum) of ScrollPane to 200,200 fixes that.

          Issue Links

            Activity

            Hide
            serb Sergey Bylokhov added a comment -
            Show
            serb Sergey Bylokhov added a comment - BT2:SUGGESTED FIX http://cr.openjdk.java.net/~serb/7124213/webrev.00/
            Show
            serb Sergey Bylokhov added a comment - Fixed: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/39227bb92978
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/39227bb92978
            User: lana
            Date: 2012-10-12 18:08:25 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/39227bb92978 User: lana Date: 2012-10-12 18:08:25 +0000

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                vasya Vassili Igouchkine (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: