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

MAWT: Focusable frame loses focus when clicking a non-focusable dialog /frame on sol9

XMLWordPrintable

    • sparc
    • solaris_9

      I am popping up a Frame having a button. On clicking this button, a dialog would be shown. This dialog has been made non-focusable by calling dialog.setFocusableWindowState(false). But once both the windows are shown, when I click on the dialog the frame and the button on the frame loses focus and dialog's title bar is highlighted. Dialog is not empty and it has a dummy button. This is noticed on Solaris9 (CDE) right form JDK1.4.

      When running this app on linux remotely (Logging into RH9 or JDS from my solaris box through rlogin), the focus is shifted to the dialog when the dialog is shown for the first time by clicking on the frame's button. But after we manually tranfer the focus to the frame, the dialog does not gain focus. When running directly on the linux machine, this works fine in the sense that dialog is not at all gaining focus.

      I have attached a sample test. Execute the app. Click on the button shown in the frame. A dialog will appear. You would see the focus being shifted to the dialog and dialog's title bar will be highlighted. This will be seen on Sol9. You can notice that on linux too when running remotely. On solaris, you can notice this behavior every time you click on the dialog.

            son Oleg Sukhodolsky (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: