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

REG: Iconifying and restoring the frame programmatically takes the focus off the initial component

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      Actually this defect was in SolSparc10-JDS and SuSE10 and it was working fine in windows
      so this bug (6480534) is fixed in jdk7.0 b04
      The fix is breaking same functionality in windows.

      Reproduce the defect only in Window: I reproduced this defect in windows home edition
      ------------------------------------
      Iconifying the frame programmatically by calling frame.setExtendedState(ICONIFIED) and then restoring it with a subsequent call to setExtendedState(NORMAL) removes the focus from the initial component on the frame. In my app, I have added a button to the frame and I am calling the above methods when the button is clicked. When the frame gets restored, the button no longer has the focus and window is also not activated.

      I have attached a sample test. Run the test. A frame would appear with a button. Click on the button and wait for sometime. Frame would iconify and restore. When the frame comes back, check if button has the focus. If not, the bug is reproduced.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              son Oleg Sukhodolsky (Inactive)
              Reporter:
              ggirishsunw Girish Girish (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: