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

REG:setting focusable window state to false makes the maximized frame resizable

XMLWordPrintable

    • b17
    • x86
    • windows_xp
    • Not verified

      I am setting the maximized bounds of a frame to 0,0,300,300 and setting the focusable window state to false. I have set the frame state to MAXIMIZED_BOTH by calling setExtendedState(). When I move the cursor to the edges/border of the frame, i don't see any change in the cursor when the frame is in maximized state. But when I still click on the edges/border of the frame and drag the mouse, the frame is getting resized. Typically a maximized frame is not supposed to be resizable. The behavior seems to be fine when setFocusableWindowState is set to true.

      This is noticed only on Win32 platforms right from JDK1.4.2 and not occuring on 1.4.1, 1.4. Hence this is a regression introduced in 1.4.2.

      I have attached a sample testcase. Execute the application as follows.
      java WindowStateTest <0/1>
      0 - set focusable window state to true
      1 - set focusable window state to false

      Pass "1" as the argument. A frame will be shown. Click on the border and try resizing it. If it gets resized, the bug is reproduced.

      This is not reproducible on Solaris9 with CDE/GNOME.

            anthony Anthony Petrov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: