JDK-6557375 : Focus is lost when tabbing SWT_AWT to SWT to SWT_AWT
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: generic
  • Submitted: 2007-05-15
  • Updated: 2014-03-31
  • Resolved: 2014-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8-poolResolved
Related Reports
Relates :  
Description
This problem is found when working with another change request 6527109 and uses the same test (attached, requires SWT). Run the test, a single SWT toplevel window is shown with two text areas and one text field inside. The upper text area and the text field are AWT components embedded into SWT_AWT shells, while the text area in the middle is pure SWT widget.

Prior to the fix for 6527109 user couldn't get the text field focused with mouse. However, the fix doesn't eliminate another problem: the text field cannot be focused with keyboard. To reproduce the problem, launch the test, wait until both AWT components are embedded. Then press TAB to get SWT text area focused and then CTRL+TAB to move focus to the text field. If the text field is not focused, the bug is reproduced.

Subsequent TAB or CTRL+TAB correctly moves focus to the upper AWT text area. If I first click the text field with mouse, the bug is not reproduced. If I first press SHIFT_TAB, focus moves to the SWT text area instead of AWT text field.

Comments
The linked issue is fixed. Please, reopen this issue if it is still reproducible.
31-03-2014