The Swing Source


I thought it was important that any book that deals with Eclipse should also deal with SWT, since SWT is the underlying user interface for Eclipse. Makes sense, eh? Not only that, there was no real tutorial on using Swing and Eclipse together, and as I found, it's not exactly intuitive.

So, all the primary examples in the book use SWT as the interface. This is not meant to be an opinion as to whether SWT is better than Swing or vice versa; it is simply the decision made when selecting the content of the book.

However, I know that some of you may be familiar with Swing and may prefer it. Alternately, some of you may have no idea whatsoever what Swing is and may want to see some examples of Swing code. To that end, I have included Swing versions of the various graphical application in this book, as follows :

Step

Example

UI

Location

9

HelloSWT

SWT

/Source/Step 9/HelloSWT.java

 

HelloSwing

Swing

/Source/Step 9 (Swing)/HelloSwing.java

9

Prompt

SWT

/Source/Step 9/Prompt.java

 

PromptSwing

Swing

/Source/Step 9 (Swing)/PromptSwing.java

10

Inquire

SWT

/Source/Step 10/lnquire.java

 

InquireSwing

Swing

/Source/Step 10 (Swing)/InquireSwing.java

There were two thick-client applications in Step 9 and one in Step 10. The examples in the book are all SWT. For each SWT example there is a corresponding Swing example. All code for both UI types is on the included CD-ROM.




Eclipse
Eclipse: Step by Step (Step-by-Step series)
ISBN: 1583470441
EAN: 2147483647
Year: 2003
Pages: 90
Authors: Joe Pluta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net