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

Window is not getting the focus if the parent frame is set to setFocusableWindowState(false)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 6
    • client-libs
    • Fix Understood
    • x86
    • windows_xp

      1. Create a Frame with setFocusableWindowState(false) and make it visible.
      2. Create a Window with a button and make it visible.

      Expected result: Button inside the Window should have the focus
                       it should trigger focus gained event.
      Actual resulst: Button inside the Window is not having the focus
                       and it is not triggering focus gained event

      - the focus is not gained even though "isFocusableWindow" returns true for Window
      - click on the button in Window still focus is not gained by the button.
      - it happens both in Windows as well as in Solaris.
      - This defect is there since 1.5.0 but there is a difference in 1.5.0 clicking on button in windows gains the focus and fires the event but this is broken in jdk 1.6.0 between b10 and b25.

      Note: This happens only if the parent frame is setFocusableWindowState(false) same thing works fine for a dialog

            ant Anton Tarasov (Inactive)
            ggirishsunw Girish Girish (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: