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

frame lose the focus when changing the frame to sizable & non-resizable

XMLWordPrintable

    • sparc
    • solaris_10

      At run time, when ever the user is necessary he like to resize the frame by calling frame(setResizable(false), if dn't need he would make the frame to non-resizable by calling setResizable(false). When i tried to do the same , focus is lost from the frame. Even i am requesting the focus on the components in the frame.
      Step to reproduce
      -----------------
      1) Run the attached program.
      2) You can see focus is on the first button "SetResize". clicking "SetResize" will allow the frame to resize & observe that focus will go to the second button "Remove Resize".
      3) Clicking "Remove Resize" button will allow frame to non-resizable. Observe that focus is not on the frame. If you see the same, then the bug is reproduce.
      You can repeat step 2 & 3 for 4 to 5 times.still you can see the same problem.

      This happens on solaris, it works fine on windows.
      This works fine in jdk 1.4.2. but fails from jdk1.5.0 fcs b64 ( the build that have) till jdk1.6.0 b105. So this a regression introduce in jdk1.5.0 .

            anthony Anthony Petrov (Inactive)
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: