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

When invoked popup menu the focus could be transfered to JRootPane

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: