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

Default Component must gain focus when Frame pops up

XMLWordPrintable

    • generic
    • generic

      The First Component added to the Frame must gain focus, when the Frame is popped up for the first time, if no focus traversal policy is set and no explicit request for focus is made and if the Component is focusable.

      In Solaris & Win32, when Swing Components are used, the Focus is not gained by the first component.

      How to Reproduce the Bug
      ========================
      Extract and Run the sample program DefaultFocus.java

      The Components are added in the order Button1, List, Button2.
      But by default List gains focus and not Button1

            hgajewsksunw Hania Gajewska (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: