Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT_AWT focus problem
SWT_AWT focus problem [message #448502] Tue, 11 January 2005 16:03 Go to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 17
Registered: July 2009
Junior Member
We have a Swing app that we are looking at slowly migrating over to SWT
and the SWT_AWT looks like the perfect way to do this. Looking at RCP
(this is not an RCP question) we thought the job manager was the most
useful feature so we turned on the status line while turning off
everything else in the RCP. Next we created a view (the only view we
need) and embedded our Swing app into that view. So far so good, it
launches and we see our Swing app on the top and the Eclipse status line
at the bottom.

The first part of the Swing app is a login screen with the typical
username field, password field, and login button. The problem is when I
put my cursor at the username field and hit tab, the focus goes away. I
figured Eclipse/SWT was grabbing it so I added a couple of buttons to the
status line to test the theory. Sure enough when I tab out of the
username field the focus goes to the first button on the status bar.
Hitting tab again goes to the second (and final) button on the status bar.
The third tab takes me back up to the username field in the Swing portion.

Anyone have any ideas why this might be happening? How do I make sure
focus events get delivered to the Swing portion correctly? I do not even
have any ideas about where to start to look so any help will be
appreciated.

In case anyone cares, I am running the GTK version of Eclipse/SWT on a
Fedora Core 3 linux box with JDK 5.0.

Thanks,
-Phil
Re: SWT_AWT focus problem [message #448531 is a reply to message #448502] Tue, 11 January 2005 16:26 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sounds like a bug. Can you code up a simple stand alone example and enter a
bug report? Thanks.

"Philip Borlin" <pborlin@cmcflex.com> wrote in message
news:cs0tcv$vot$1@www.eclipse.org...
> We have a Swing app that we are looking at slowly migrating over to SWT
> and the SWT_AWT looks like the perfect way to do this. Looking at RCP
> (this is not an RCP question) we thought the job manager was the most
> useful feature so we turned on the status line while turning off
> everything else in the RCP. Next we created a view (the only view we
> need) and embedded our Swing app into that view. So far so good, it
> launches and we see our Swing app on the top and the Eclipse status line
> at the bottom.
>
> The first part of the Swing app is a login screen with the typical
> username field, password field, and login button. The problem is when I
> put my cursor at the username field and hit tab, the focus goes away. I
> figured Eclipse/SWT was grabbing it so I added a couple of buttons to the
> status line to test the theory. Sure enough when I tab out of the
> username field the focus goes to the first button on the status bar.
> Hitting tab again goes to the second (and final) button on the status bar.
> The third tab takes me back up to the username field in the Swing
portion.
>
> Anyone have any ideas why this might be happening? How do I make sure
> focus events get delivered to the Swing portion correctly? I do not even
> have any ideas about where to start to look so any help will be
> appreciated.
>
> In case anyone cares, I am running the GTK version of Eclipse/SWT on a
> Fedora Core 3 linux box with JDK 5.0.
>
> Thanks,
> -Phil
>
Re: SWT_AWT focus problem [message #448541 is a reply to message #448531] Tue, 11 January 2005 20:03 Go to previous message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 17
Registered: July 2009
Junior Member
Bug filed under #82599. I have included a simple RCP example application
with the bug report.

Steve Northover wrote:

> Sounds like a bug. Can you code up a simple stand alone example and enter a
> bug report? Thanks.
Previous Topic:NoClassDefFoundError In SWT Display Event Loop
Next Topic:Dynamic column widths in tables
Goto Forum:
  


Current Time: Wed Apr 24 21:25:14 GMT 2024

Powered by FUDForum. Page generated in 0.39547 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top