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

[macosx] JFrame.setExtendedState(JFrame.MAXIMIZED_BOTH) not working as expected in JDK 7

    XMLWordPrintable

Details

    • b20
    • x86
    • os_x
    • Verified

    Backports

      Description

        Running the code below on JDK 1.6 correctly shows the window maximized across the whole screen. However when running on JDK 1.7 (update 6, build 13) the window is resized to given bounds instead of being maximized.

          JFrame frame = new JFrame();
          frame.setBounds(100, 300, 500, 500);
          frame.setVisible(true);
          frame.setExtendedState(frame.MAXIMIZED_BOTH);

        Note that setting the extended state first and then making the main window visible fixes the problem.

        http://netbeans.org/bugzilla/show_bug.cgi?id=214056

        Attachments

          Issue Links

            Activity

              People

                anthony Anthony Petrov (Inactive)
                anebuzel Antonín Nebuželský
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: