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

The window that created with overrideRedirect can not be reset not to override

XMLWordPrintable

    • b25
    • x86, sparc
    • solaris_8, solaris_9, solaris_10

      The bug can be reproduced with the Swing regression test for bug 4769039
      (javax/swing/JPopupMenu/4769039). In the test we are creating the Swing JPopupMenu with the editable component inside it. We are trying to enter the text into this component and checking if we are sucseeded. On the Solaris platform test fails. In our Popup class we are creating the popup as Window with name "###overrideRedirect###" and setFocusableWindowState(false). Later in the PopupFactory class where we are checking that there are focuseable components in the popup, we are resetting the parameters of the popup window to setFocusableWindowState(true) and name to "###focusableSwingPopup###". Note that this happens before the popup first time shown on screen. But this does not help, window can not be focused and text can not be entered into component. If i comment out the Popup code that makes popup window with special name and state test passes.

            kizune Alexander Zuev
            kizune Alexander Zuev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: