Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 82599 - Tab behaves incorrectly in Swing components when using SWT_AWT bridge
Summary: Tab behaves incorrectly in Swing components when using SWT_AWT bridge
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 major with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 14:58 EST by Philip Borlin CLA
Modified: 2019-01-11 12:05 EST (History)
2 users (show)

See Also:


Attachments
Test case (6.47 KB, application/octet-stream)
2005-01-11 15:01 EST, Philip Borlin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Borlin CLA 2005-01-11 14:58:10 EST
I have a test case that demonstrates what I am talking about.

I have created a simple as possible RCP application.  There is no menu, coolbar,
status line, or anything.  I create a simple as possible perspective and give it
a default view (SampleView).  SampleView's createPartControl creates a new
Composite that has the SWT.EMBEDDED flag set.  I then pass this new Composite
into SWT_AWT.new_Frame() and get back a Frame.  As per the javadoc I add a heavy
weight Panel to the Frame and then subsequently add a light weight panel (for
looks) and then two JTextFields.

I also override setFocus() to default the focus to the first JTextField.

When I run the app, the focus starts on the CTab from the view.  If I hit tab
then the focus correctly goes to the first JTextField.  If I hit tab again, the
focus incorrectly goes back up to the CTab on the view.  The expected behavior
would be that hitting tab when the first JTextField has focus would result in
the second JTextField receiving focus.

The attached plugin defines an application named SWT_AWT_Focus_Bug.application
which is what should be run to see the demo in action.  I built the plugin off
of Eclipse 3.1M4 and I do not guarantee backwards compatibility with previous
versions of Eclipse.
Comment 1 Philip Borlin CLA 2005-01-11 15:01:52 EST
Created attachment 17080 [details]
Test case
Comment 2 Doug Larson CLA 2005-03-10 18:48:37 EST
Is this problem likely to be fixed?  It is a big problem for us too.  I can 
recreate it with a standalone SWT application.
Comment 3 Silenio Quarti CLA 2005-03-11 11:12:55 EST
Please could provide the standalone APP? I will look into this...
Comment 4 Doug Larson CLA 2005-08-18 17:39:50 EDT
Is there any update on this?
Comment 5 Bernd Wiswedel CLA 2007-06-29 04:14:26 EDT
I would also like to see this fixed. Any updates? Anyone working on it?
Comment 6 Xi Yan CLA 2018-12-14 14:52:00 EST
Is this still relevant?
Comment 7 Xi Yan CLA 2019-01-11 12:05:38 EST
No response for a while, closing. Please reopen this ticket if the issue reoccurs.