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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: