Vous voulez voir cette page en français ? Cliquez ici.

Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Core Swing: Advanced Programming [Paperback]

Kim Topley
3.2 out of 5 stars  See all reviews (17 customer reviews)

Available from these sellers.

Join Amazon Student in Canada

Book Description

Dec 20 1999 0130832928 978-0130832924 1
The most up-to-date collection of advanced Swing techniques available!
Sophisticated new techniques for working with text, trees, and tables.
Drag-and-drop, undo/redo, accessibility, customizing your own Swing components, and much more!
Answers dozens of the most important questions raised by programmers in the comp.lang.java newsgroups. Now that the Swing classes have been in the marketplace for several months, thousands of Java programmers are ready to go beyond the first round of Swing books. In short, theyre ready for Core Swing- Advanced Programming, the most advanced Swing techniques ever published! Kim Topley picks up where he left off in Core Java Foundation Classes, providing even more sophisticated techniques for working with text, trees, and tables, creating your own Swing components; and much more. In this book, Topley has taken on many of the toughest Swing issues raised by programmers in the Java newsgroups -- and hes also addressed three key topics many earlier Swing books missed- undo/redo, drag-and-drop, and accessibility.
Kim Topley is author of Core Java Foundation Classes (Prentice Hall PTR). One of the first developers to obtain the Sun Certified Java Programmer qualification, he now builds applications for a leading financial institution in London, England.

Special Offers and Product Promotions

  • Join Amazon Student in Canada

Customers Who Bought This Item Also Bought

Product Details

Product Description

From Amazon

Written as a supplement to the author's Core Java Foundation Classes, Kim Topley's Core Swing: Advanced Programming delves deeply into several important Java topics. Every experienced Java programmer will find very useful techniques for working with Swing controls and other high-level UI features.

The book zeroes in on two aspects of Swing interfaces. First, there are over 500 pages on optimizing your usage of a variety of Swing text controls. The author provides solutions to mimicking native-style operating system support for data validation, numeric input, and special processing with user input. There's also excellent coverage on the extensive support in Swing for loading and displaying HTML. Sections on extending the Swing table control will let you change how table data is displayed and edited (with coverage of custom renderers and cell editors).

In addition, this book explores features in Swing that allow you to carry out advanced user interface operations, such as drag-and-drop functionality and undo support. Throughout this text, the author uses short code excerpts that solve problems and showcase brilliant Swing implementations. By concentrating on strategies and solutions, and not just the Swing APIs, the author shows you not only how to solve particular problems but also the underlying Swing design philosophy, so you can take this library even further in your own programs.

If anything, this text proves once and for all that Swing is ready to take on native operating systems like Windows with its support for advanced user features. This book delivers some really valuable and impossible-to-find information for any experienced Java programmer who needs to do more with Swing. --Richard Dragan

Topics covered: Extending Swing text controls, text wrapping and scrolling, manipulating text documents, input validation, text attributes, highlighters and carets, custom views, Swing HTML support classes, viewing HTML, editor kits, cascading style sheets and Swing, bi-directional text for international applications, advanced table features in Swing, custom table renderers, table editing and cell editors, drag-and-drop support in Swing, drag sources and drop targets, using tree controls for file information, undo support in Swing.

From the Back Cover

The experienced developer's guide to the Swing classes!

Core Swing helps you deliver the sophisticated Java GUI applications your users demand—with Java Swing techniques that start where other books leave off! Building on his bestseller Core Java Foundation Classes, Kim Topley takes on the toughest Swing issues raised by programmers throughout the Java community and addresses crucial topics first-generation Swing books completely missed.

With Core Swing, you'll discover how to exploit the Swing tree and table controls to the fullest, customize and create your own text fields with features that sophisticated users expect, build your own editors and file viewers, and much more. There is complete and in-depth coverage of Swing's HTML support, a topic barely addressed in other Swing books. You'll also find detailed coverage of undo/redo and drag-and-drop, with lengthy, fully documented code examples, in the book and on the accompanying CD-ROM.

Every Core Series book:

  • DEMONSTRATES how to write commercial quality code
  • FEATURES dozens of nontrivial programs and examples—no toy code!
  • FOCUSES on the features and functions most important to real developers
  • PROVIDES objective, unbiased coverage of cutting-edge technologies—no hype!

Core Swing: Advanced Programming delivers:

  • State-of-the-art insights into the Swing classes that other books can't touch
  • Practical techniques for building the Swing components you really need
  • Fast-track techniques for making the most of text controls, editors, tables, and drag-and-drop
  • Hundreds of professional-level code examples


The accompanying CD-ROM includes all of the book's detailed code examples a bonus chapter taken from Kim Topley's first book, Core Java Foundation Classes, and trial versions of SwingBuilder from SwingSoft and Netbeans.

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Reviews

Most helpful customer reviews
5.0 out of 5 stars Very good, rather specialized, advanced book April 21 2003
By A Customer
This book was wisely focused on selected advanced Swing topics, rather than trying to be comprehensive. I suspect Kim Topley could write two or three additional books with a similar level of detail on other advanced Swing topics, and it was sensible not to write 2500 pages all at once.
_If_ the focus topics (everything you might want to know about text components, table cell renderers and editors, drag-and-drop, undo/redo) are of interest to you, you won't find a better text anywhere, explicitly including all the Swing tutorials available on the Web. This is not a Swings basics book, but it _is_ an excellent how-to, and often why-to, book. Lots of code examples, lots of explanation.
Let me repeat: This is not a Swing basics book. The emphasis is not on how to apply the stock JFC components, but rather on how to customize, modify and extend the JFC components. For example, instead of just saying "JFC drag-and-drop support is limited primarily to raw text", Topley shows you how to implement support for d-d of whatever data types you are interested in. Actual d-d data interchange representations are not discussed, as that is highly platform- and datatype-specific.
Was this review helpful to you?
A whole chapter on JTables and not mentioning much about the tables. There is more focus on BigDecimal and Doubles than on how a table works.
Why don't you write this chapter again and talk about. 1. How a Table works. 2. What a TableModel is and how it Works. 3. What is a renderer and why would i need on. 4. Don't WORRY ABOUT CURRENCY, Write about tables.
Also, if you want to make a practical example.
DON'T USE: Object[][] as the basis for your table without explaining which array is thr row ant which is the column.
Build a custom object like one that might be used in the REAL WORLD and write about that.
class CostElement { short id; String name; int Price; }
now define a table full of CostElement[] objects. Now THAT, would be practical.
This book does not adequatley address the relevant topics to make it meaningful. think I'm going to return my book. It is of no use to me.
Was this review helpful to you?
2.0 out of 5 stars Problems with this book April 30 2001
The book is entitled Core Swing and I bought the book believing it to be so. However, it is not this. Rather it is a collection of chapters on very specific problems which are of limited relevance unless you wish to solve these very specific problems. I managed to extract a few things which I could generalise but really the book needs to be written in a much more general way and then modify the examples to be more general and put them in an appendix. I followed the procedures on customing DND to other components and could not make it work (I believe not bothering to do this will though). JTrees are used as an example for moving data between applications. Who would want to use this in such an obscure way?
Was this review helpful to you?
This is a very well written, specialized book meant for experienced Swing developers. In it Topley covers some of the most complex Swing topics with clarity, detail and useful examples: - Text Components and the HTML package - Bi-Directional Text - Custom Text Component Views - Table Rendering - Table Editing - Drag-and-Drop - Undo/Redo
If you are an experienced Swing developer needing to go deeper with any of the above, I would highly recommend this book. It is not for learning Swing (hence the title "Advanced Programming"), and it is a pity that it has been reviewed as such by some others here.
- Matt Robinson co-author of "Swing" (Manning Publications, Inc.)
Was this review helpful to you?
5.0 out of 5 stars No time for experimenting ? This is your book Feb. 28 2000
I like the 'Core...' books and really appreciate their format. This one is no exception. The chapters are as with the 'Core Java 2' books very clear and to the point. I wanted to know about menus, it got me where I wanted to go in 10 minutes, same with custom dialogs. Sofar I read about 80% of the book in random order. I just read those chapters on the subject I need more info on. No need to read previous chapters, no need to read following chapters either. If you're like me, and don't have enough time to do all that you want to. You definitely need this book.
Was this review helpful to you?
5.0 out of 5 stars Great book for Swing developers. Jan. 17 2000
By A Customer
This is the second book by Kim Topley that I have purchased, I bought the first book: Java Foundation Classes when it first came out and found it very useful, so was very pleased to see the new book.
I have found these books to be a good source of reference and good tutorials. The text is clear and concise and the examples well written and illustrate the subject very well. I initially bought the book because of work I was doing on Drag and Drop and Undo, but found the whole book very useful.
Well worth reading by anyone developing in Swing.
Was this review helpful to you?
3.0 out of 5 stars useful samples, poor writing April 21 2001
By A Customer
This book gives some advanced Swing samples that I can use, but the writing gets in the way. I agree that he rambles too much, glosses over some things and pores way too long on others. This book really needed an editor, and better organization.
A minor annoyance is how the sample code excerpts list the variables at the end of the code instead of before the code, so you have search for the end of the sample before you can even start reading it.

What we need is a good online site and code snippet archive really.
Was this review helpful to you?
Want to see more reviews on this item?
Most recent customer reviews
3.0 out of 5 stars Very limited Scope
This book covers only a very few topics:
mainly tables and editors.
If you want to write your own components, data validators, etc, this book has nothing to tell you. Read more
Published on Aug. 29 2002 by Roedy Green
4.0 out of 5 stars It says 'Advanced'
If you are a newby Swing programmer, get OReilly's Java Swing book for all the gory low level details. Read more
Published on Dec 13 2001 by John Wood
4.0 out of 5 stars Great Book for Serious Java GUI programmer
This is one of the most helpful book that I had bought in helping me doing a java GUI in Swing. It is definitely not a book for beginners or for those who are starting to learn... Read more
Published on June 19 2001 by Wee Kah Huat
1.0 out of 5 stars Should be titled: how to write an editor using swing
This book's title makes you think it covers SWING. It actually only covers a limited subset of things that can be handled using swing. Read more
Published on May 16 2001
5.0 out of 5 stars A one of a kind on advanced Swing features
Aimed at the advanced Swing developer, this book clearly explains advanced topics on the most complicated classes. Read more
Published on Jan. 10 2001 by Mikey D
1.0 out of 5 stars Academic Blathering
I bought this book looking for a good Swing reference and tutorial (my previous experience with Swing has been taking the free short course on-line from SUN). Read more
Published on Dec 27 2000
1.0 out of 5 stars Academic Blathering
I bought this book looking for a good Swing reference and tutorial (my previous experience with Swing has been taking the free short course on-line from SUN). Read more
Published on Dec 27 2000
2.0 out of 5 stars Warning...More like a GUI design book than a swing book
The book spends about 80% of it time discussing problems involved in GUI designs which is totally not what the title of the book states. Read more
Published on Oct. 26 2000
Search Customer Reviews
Only search this product's reviews

Look for similar items by category