By Tim Hatton
October 2004
Pages: 320
Series: Developer's Notebooks
ISBN 10: 0-596-00838-4 |
ISBN 13: 9780596008383
![]()
![]()
![]()
![]()
(Average of 7 Customer Reviews)
In typical Developer's Notebook style, you'll learn how to take SWT out for a spin, make it work for you,and turn it upside down, all without wasted words or space. Each lab in this notebook details a specific task; you can read from the first page to the last, look up just what you need to know, and even squeeze this book into your laptop bag as a quick reference when you forget how to create a multi-tabbed view.
Full Description
- Downloading and configuring Eclipse and SWT
- Menus, toolbars, and buttons
- Building tabbed layouts and folders
- SWT's unique coolbar control
- Adding listeners and responding to events
- Building a complete SWT-based application
Register your book | Submit Errata | Examples
Browse within this book
Cover | Table of Contents | Sample Chapter | Colophon
Book details
First Edition: October 2004
Series:
Developer's Notebooks
ISBN: 0-596-00838-4
Pages: 320
Average Customer Reviews: ![]()
![]()
![]()
![]()
(Based on 7 Reviews)
Featured customer reviews
This got me going with SWT, August 23 2007
I have just learned SWT in an afternoon from this book, but did have the advantage of being reasonably proficient with Swing. I was provoked to write a review as I thought that one of th existing reviews was unfair in saying that the code examples did not work. I was happy to provide my own ico files etc. and would not have expected these to be provided by the author, and the examples worked for me. I typed them into an Eclipse IDE rather than downloading them from the O'Reilly site.
I then checked out where SWT is today and there are now quite a few more widgets than described in the book, but at least I came away with a new skill set in a remarkably short time and I am grateful to Tim Hatton for that.
Great, August 24 2006
I tried this book while being a novice on both Java and SWT. I found it great to design quicly IHM. I understand that Java expert may be disapointed by this book, but if you are a novice and want to go quicly on designing SWT... this is the book
Disappointing, October 10 2005
Very disappointed.
The included code doesn't all work for two reasons
1) basic code flaws that the compiler flags, and once you fix these, 2) none of the graphics (ico) files needed to run many of the examples are included in the companion files on the web site.
Hard for a relative newbie to Eclipse and the SWT to learn when these obstacles are encountered.
All in all, as it stands, this book is extremely frustrating and a waste of money.
If the code and graphics problems were fixed, it could be a great book.
test, March 17 2005
test
Author is incredible blithering, March 08 2005
Series creator promising reader is learning something from a master, but all I can see is he repeat telling you how to create a widget with almost same sentance.
Author is repeat same task using same clause over and over again.
He using boring words with no insignt to reapeat same thing over and over again.
You can find author is bang on same topic (how to create widget instance to add to the shell) over and over again.
Reader will see author is repeat...do you see some pattern here? I see the same thing happen on this poor written book too.
I'm very disappoint about this book and feel sorry to the author-you spent 300 pages to discuss only one thing: how to create widget instance and add to the shell, aren't you?
Buy this book only if you are a beginner, December 31 2004
I like SWT. It's easier to use than Swing and looks better than AWT. However there are a few things that are done differently and this book tells you most of it. However, the books stops right here and there is not much meat after you done with the basics.
The first problem I find with this book it that it's trying to be too broad. Explanations on when to use named inner classes to avoid code duplication have nothing to do in a notebook manual. It's a waste of space, people picking up this volume should already be acquainted to Java language.
I didn't find the more interesting stuff I was looking for (i.e. customizable and resizable toolbars) It's already in eclipse IDE, so I guess I will have to do some digging in the code instead of relying on this book.
No treatment of internationalization, serialization of widgets for archiving, and missing some important GUI design issues.
Absolutly no references on flags you can pass. It's important because you need to use flags wiht constructors a lot in SWT.
If you try the examples, you will find some bugs. In the layout chapter, the examples don't mention the shell.pack() method which causes all the examples to fail. Some other bugs at various places. They are easy to spot, so editing was probably sloppy.
Explanation on the menus is vague. It would have been nice to add some diagrams explaning the cascade vs. pulldown mechanisms for adding items.
In conclusion, buy this book if you are a beginner at Java and GUI programming. If not, then online tutorials will bring you what you need to write your apps.
It's a notebook alright, where's the rest of it ?, October 31 2004
It's a little difficult to place this book. I came away with the sense that while the goals were well intentioned, and the coverage of SWT itself left me feeling a little...wanting.
The ordering of the chapters were a little hop-scotched. While "Shells" are a good place to start, and menu's are a logical follow-on, jumping to toolbars as the third chapter does, leaves you with a feeling of "Huh?". I think the layout chapter should've come much earlier in the book, perhaps after introducing a couple of the more basic controls.
Before even discussing shells, I think a bit more introduction on a couple of topics was warranted. Since these topics have more to do with Eclipse than SWT, I ask your indulgence. While you CAN develop for SWT without Eclipse, frankly how many of us don't take maximum advantage of the facilities of the IDE's to do much of the tedium in creating the infrastrcture of our projects. This is where the SWT Developer's Notebook falls a little short.
Yes, to the purist, thinking of the "Notebook" series as being a sequence of notes and clear cut examples for how to do things, this might sound like a departure from the intended form. But, it's one that I think would've been well suited here. As an example, I point out the Eclipse Cookbook ( also from O'Reilly press, released just a few months ago ), which does go into this topic, if not in depth, just enough to help the novice get going. It's not like there was NO information, but rather that what little there was ; was just plain disjointed. Sure, it's nice to be shown how you can have the path to the SWT jar's to the libraries added to your build libraries ( and the where the SWT DLL's are for the classpath ), but there's no mention of how to kickstart your first SWT project.
There was also simply NO mention of any of the available visual editors: Jigloo by CloudGarden, SWT Designer by Instantiations, SWT Workbench, and the Eclipse Project's own Visual Editor, most of which have been around for quite a while. Some Java purists will surely decry, "I do my UI in code, by hand". Apparently those dinosaurs haven't
been exposed to other RAD-based development environments ( or they're simply not doing that much UI-based work ). However, for those who are, and have been, having a UI design tool these days, is almost indispensible. Sure, this book isn't meant to be an ad for any of those products, but since this book is about the UI library provided by Eclipse, it bore mentioning.
I also felt strongly that anyone who wants to make use of the samples in this book, should've had a them available for download. As of writing of this review ( 10/31/2004 ), they're still not up on the O'Reilly site.
Now that I've thrashed about those points that I didn't like, let me tell you what I did like. I likes that the chapters, in and of themselves, were streamlined, and not full of fluff. The examples were succcinct and to the point.
This Developer's Notebook ( of the three that I own so far, the Mono Developers Notebook, and Tiger 1.5 Java Notebook being the other two ) is the only one that left me with the feeling of a spy novel that leaves you wanting. It's a good start for a series, and I think it's laid down reasonable ground to develop an "SWT Developer's Second Notebook". Topics as the custom controls library ( and a little JFACE wouldn't hurt ), such as the TableTree, CLabel, and CCombo controls, just to name a few, come to mind. Another area just waiting to be explored is the interopability layer built into SWT ( SWT_AWT ) which allows you to embed SWING/SWT controls, within an SWT composite ( also briefly discussed in the Eclipse Cookbook ). Perhaps the authors will consider this, and expand this series. In summary, it's a good primer despite it's rough edges, let's just hope there's a sequel.
Marcelo R. Lopez, Jr.
10/31/2004






