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

Improper focus traversal in frame embedded in SWT shell

XMLWordPrintable

    • sparc
    • solaris_9

      Focus traversal using tab key is improper in a frame embedded in SWT shell. Focus does not reach the first swing component in the embedded frame from an SWT component when tab key is pressed. Tab button has to be typed twice for the focus to reach the first component. And if there are two swing components on the Frame, the first component does not get focus a second time focus traversal is done.

      Steps to reproduce:
      1. Run the attached testcase
      2. A SWT shell opens which has an SWT button, a list, a JButton and JTextField.
      3. Keep pressing the tab key. It can be seen that focus does not reach the JButton after the SWT list. Press the tab button again and JButton gets focus.
      4. Keep pressing the tab key. JButton does not gain focus a second time.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: