Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Programming Techniques
SWT Programming Techniques [message #464654] Mon, 28 November 2005 05:34 Go to next message
Joseph Rignanese is currently offline Joseph RignaneseFriend
Messages: 16
Registered: July 2009
Junior Member
Hi guys,
I'm looking to make an application which consists of 3 forms (Login, Main
and Detail).

Does anyone have advice on how to go about doing this?

All of the examples I've seen so far only have a single shell, and therefore
they simply put it all in the main method.

I want to start with the Login form, which can progress to the Main form.
The main form links to the Detail form or the Login form. The Detail form
only links to the Main form.

After Login there will be a fair chunk of processing that needs to be done
to build the Main form.

So..
My questions are:
1) what classes should I have? (One for each or just put them in a single
class)
2) where do I build up the GUIs?
3) how can I code it so that the processing is performed in a seperate
thread from the GUI thread.
Re: SWT Programming Techniques [message #464656 is a reply to message #464654] Mon, 28 November 2005 08:00 Go to previous message
ted@ted.net is currently offline ted@ted.netFriend
Messages: 3
Registered: July 2009
Junior Member
hi Joseph,

1) It is your choice how many classes to use, but I would recommend one
per form.

2) You can build the GUI strictly by coding in the text editor, but if
you'd like to use a visual GUI designer, consider WindowBuilderPro
(http://www.windowbuilderpro.com/).

3) See the javadoc for java.lang.Thread
( http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.htm l) and take
caution in how your background thread interacts with the UI
( http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/swt_threading.htm).

ted@ted.net - ted.williams@windriver.com
Previous Topic:cairo no longer shipped with 3.2M3?
Next Topic:is the time-delay for SWT.MouseHover adjustable?
Goto Forum:
  


Current Time: Fri Apr 19 01:45:06 GMT 2024

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

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

Back to the top