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

When invoked popup menu the focus could be transfered to JRootPane

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • None
    • client-libs

      Having our app (creator), when invoking the popup, the focus gets transferred to JRootPane.
      That doesn't seem to be correct and has probably more flaws in the focus handling impl:

      1) Why it is transfered to the JRootPane in this case,
      2) How come that JRootPane, which is not 'visible to user' component can get the focus at all.

      You can debug it in the creator this way:
      When you start from console, and enabling the output to the console (launcher switch -J-Dnetbeans.debug.console=true), then during working with the IDE when anytime you press Ctrl-Shift-Pause(orBreak), you get dumped the currect focus owner into the console.
      Invoke (almost) any popup menu, and press the shortcut, and you'll see in the console the focus owner is JRootPane.

            alexp Alexander Potochkin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: