Set tab order feature in a Swing project ...

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Set tab order feature in a Swing project ...

Postby ncister » Mon Sep 19, 2005 2:08 am

Hi,

I'm using WBP v. 4.1.1 build 2005.09.18 and i've tried to use the "Set tab order" feature in a Swing project (a standard startable JFrame class) .... but it seems not works .... :(
I've also tried the same feature within an SWT project ant it's works well ..... any suggestions ?
Again, to use the this feature i must deploy the designer.jar library, is it true ?

Thanks.
Nicola.
ncister
 
Posts: 14
Joined: Wed Jan 19, 2005 1:57 am

Re: Set tab order feature in a Swing project ...

Postby Eric Clayberg » Mon Sep 19, 2005 4:43 am

ncister wrote:I'm using WBP v. 4.1.1 build 2005.09.18 and i've tried to use the "Set tab order" feature in a Swing project (a standard startable JFrame class) .... but it seems not works .... :(
I've also tried the same feature within an SWT project ant it's works well ..... any suggestions ?

If you have set the tab order for the JFrame's contentPane, set its focusCycleRoot property to true.

Alternatively, you can click on the JFrame itself in the component tree and set its focusTraversalPolicy property directly.

ncister wrote:Again, to use the this feature i must deploy the designer.jar library, is it true ?

No. You do not need to include the designer.jar file.

Designer does not require any runtime files. All code it needs is generated by the tool into your project.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby ncister » Mon Sep 19, 2005 5:34 am

Hi Eric, and thank you for replay
No. You do not need to include the designer.jar file.
Designer does not require any runtime files. All code it needs is generated by the tool into your project.

OK, but the project require FocusTraversalOnArray class .....
Indeed the Eclipse IDE raise the follow error message
Code: Select all
The import com.swtdesigner.FocusTraversalOnArray cannot be resolved ....

How i can solve this dependance ?
What (deployable) library include the FocusTraversalOnArray class ?
Thanks.
Nicola.
ncister
 
Posts: 14
Joined: Wed Jan 19, 2005 1:57 am

Postby Eric Clayberg » Mon Sep 19, 2005 9:03 am

ncister wrote:the project require FocusTraversalOnArray class

That class is automatically added to your project any time it is needed. If it was not added to your project, check your .log file for exceptions.

The file is also availabe in the plugins\com.swtdesigner_4.1.1\supplied_src\com\swtdesigner directory, if you want to add it to your project manually.

ncister wrote:What (deployable) library include the FocusTraversalOnArray class ?

There isn't any. The class is meant to be added to you project as source (like any other generated code).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby ncister » Tue Sep 20, 2005 12:12 am

Hi Eric,
Eric Clayberg wrote:That class is automatically added to your project any time it is needed. If it was not added to your project, check your .log file for exceptions.

The problem is that the designer search the class in supplied_src5 subdirectory while it's located in the supplied_src subdirectory as shown by log messages:
Code: Select all
!ENTRY com.swtdesigner 4 4 2005-09-19 14:23:10.216
!MESSAGE Designer internal error: /supplied_src5/com/swtdesigner/FocusTraversalOnArray.java
!STACK 0
java.io.FileNotFoundException: /supplied_src5/com/swtdesigner/FocusTraversalOnArray.java
   at org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler.findBundleEntry(Handler.java:42)
   at .........

I think that will include this class in my standard framework libraries.
Thanks.
Nicola.
ncister
 
Posts: 14
Joined: Wed Jan 19, 2005 1:57 am

Postby Eric Clayberg » Fri Sep 23, 2005 12:50 pm

ncister wrote:The problem is that the designer search the class in supplied_src5 subdirectory while it's located in the supplied_src subdirectory

Ah, so I guess you are using JDK 1.5. In the latest 4.1.1 build, that file is provided in both directories.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest