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

setResizable(false) turns off the setExtendedState(MAXIMIZED)

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      As reported at http://forums.java.net/jive/thread.jspa?messageID=380404
      The following test case fails to display a maximized window on WinXP, jdk6u16:

      import java.awt.*;
      public class test {
          public static void main(String[] args) {
              Frame f = new Frame();
              f.setExtendedState(f.getExtendedState() | Frame.MAXIMIZED_BOTH);
              f.setResizable(false);
              f.setVisible(true);
          }
      }

      Either the specification of the setResizable/setExtendedState must be updated to reflect their incompatibility, or the bug should be fixed to allow using both methods at once.

      Attachments

        Activity

          People

            Unassigned Unassigned
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: