Sharon Zakhour

Author
+ Follow
since Apr 26, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sharon Zakhour

I also edited a relevant article that Naoto wrote for The Swing Connection --
Using Input Methods on the Java Platform. Naoto recently updated this article
for release 1.5 -- it will probably be released on the javadesktop.org
website.
Sharon Zakhour
18 years ago
Hi Somkiat,
I address Swing vs. AWT in the The Differences between AWT and Swing
thread.
Sharon Zakhour
18 years ago
This question has come up a couple of times. AWT was Sun's first cut
at a GUI package for Java. The AWT team then identified several issues
they wanted to address and a splinter group began work on Swing,
which was originally a separately downloadable package. I believe that
in release 1.2 Swing was officially added to the J2SE core. The Swing Connection article, Getting Started With Swing, explains some of the major improvemnts. Here is
a summary:
- pluggable look and feel
This is especially exciting with the introduction, in release 1.4.2,
of the GTK look and feel.
- accessibility support
This is especially important now that providing accessible applications
is a Federal law, at least here in the U.S.
- much more sophisticated component design
For example, Swing components double buffer, AWT components don't.
AWT doesn't have complex components like JTable.
Swing components have built-in drag and drop support.
This list could go on and on...
You might also find the article by one of AWT and Swing's principle
designers, Amy Fowler, interesting,
Mixing Heavy and Light Components. (By the way, we don't recommend mixing heavyweight
and lightweight components, but it's an interesting article, none the less.)
One complaint that has been leveled against Swing is that it's slow.
This has been a concern within Sun and a major push, as of release 1.4,
was to improve performance. Release 1.4 did have major performance
improvements and this continues to be an ongoing effort.
I hope that answers some of your questions. Kathy has worked at Sun
for over 10 years and may have more interesting perspectives than I, who
has worked at Sun for only 5 years.
Sharon Zakhour
18 years ago
This has been answered in some of the other threads, but the
short answer is... yes. The book assumes that Swing is new to you, but
it is a handy reference for the more experienced programmer - several
Swing engineers tell us they refer to it on occasion.
Sharon Zakhour
18 years ago
As Kathy mentions in the The The Book and the "Proper" Way thread, this book doesn't really cover
the "right" way to write an app. This will be addressed but not in the
immediate future. As Kathy said, stay tuned on javadesktop.org.
Sharon Zakhour
18 years ago
We have an example in the tutorial that paints an image in a scroll pane.
In our example, the ScrollablePicture class is a subclass of label. You
can see it here:
http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
Sharon Zakhour
18 years ago
You are completely correct. Originally the Swing Tutorial was available
online, but we received many requests for a book version.
Some people prefer paper and binding and we are happy to provide that.
Other people prefer URLs and printers and we are happy to provide that.
I might even be willing to have my children "illustrate" any particular
favorite pages (well, maybe not).
Sharon Zakhour
18 years ago
Well, in my *completely* unbiased, professional opinion, I'd have to
say that The Swing Tutorial by Kathy Walrath et. al is the superior book.
Regards,
Sharon Zakhour
co-author, The Swing Tutorial
(otherwise known as et. al)
18 years ago
Hi there,
As I said in my welcome email, this edition updates the material from
release 1.2 to release 1.4 (with some info about 1.5). One thing I did
while we were working on the book was to go to amazon.com and review
all the constructive criticism that we received on the book and we
addressed quite a bit of it. We reorganized the book - we now have
the concepts chapters in front, with the reference material in back.
We added bleeding tabs to make information easier to find. I wrote new
sections on drag and drop and data transfer and the focus subsystem.
Kathy added a section on SpringLayout.
But, of course, if you go to amazon.com, the reviews there are actually
the reviews for the first edition, so it looks like nothing has happened
in the second edition. I emailed them about that, but nothing has happened.
<sigh>
Sharon Zakhour
18 years ago
Hey everyone,
Thanks for your welcome. This is the second edition of The Swing Tutorial,
which is really more of a reference that a classic tutorial. I wasn't
involved in the first edition (off making babies back then) and I joined
the team over a year ago to update the book from Java Platform Standard
Edition, v.1.2 to release 1.4 (with some info about 1.5).
I'm sure Kathy will chime in later with her views, but I would say that
our book assumes Java programming, but not Swing knowledge. It discusses
all the main components and how they fit together and shows how they
would be most commonly used. As you know, Swing is many many classes and
many many methods and we tried to provide a roadmap that will answer,
hopefully, at least 80% of your questions. So our book is certainly for
beginners but even Swing engineers have told us that they use it for
reference. (In fact an aquaintance of mine teaches at Stanford and
used our book to update class curriculum to Java/Swing.)
For this second edition I revised the events and miscellaneous chapters
and Kathy worked on the components, layout and painting chapters (which
she had written originally). My biggest contributions were the new sections
on drag and drop and focus, which were oft-requested on our feedback alias.
One of the biggest advantages of our book is that we are backed up by
the Swing and AWT engineers. They reviewed every word and made sure we got
it right - so it really does come from the horses mouth.
Sharon Zakhour
18 years ago