Core Swing

Core Swing : Advanced Programming

3.11 (9 ratings by Goodreads)
By (author) 

List price: US$49.99

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks

Description

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, they're 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 he's also addressed three key topics many earlier Swing books missed: undo/redo, drag-and-drop, and accessibility.show more

Product details

  • Mixed media product | 960 pages
  • 177.3 x 233.7 x 35.6mm | 1,347.18g
  • Pearson Education (US)
  • Prentice Hall
  • Upper Saddle River, United States
  • English
  • 0130832928
  • 9780130832924

Table of contents

1. The Swing Text Components: Creating Customized Input Fields. The Swing Text Components. The JTextField and JPasswordField Components. The JTextArea Control. JEditorPane and JTextPane. Common Text Component Features. Text Components, Text Wrapping, and Scrolling. Adding Functionality to the Basic Text Components. Text Component Architecture. Storing Document Content. Implementing Text Fields with Input Validation. A Text Field with Look-Ahead. Text Actions and Keyboard Mappings. Summary.2. Using JTextPane. Documents with Attributes. Attributes, Styles, and Style Contexts. Summary.3. Text Components with Custom Views. Customized Document Views. How Attributes Are Stored. Views: Rendering the Document and Its Attributes. Highlighting and Highlighters. The Highlighter and HighlightPainter Interfaces. The LayeredHighlighter Class. Creating a Custom Highlighter. Custom Views and Input Fields. The Formatted Text Field. Summary.4. JEditorPane and the Swing HTML Package. The JEditorPane Control. A Simple HTML Viewer. Initializing a JEditorPane. Content Type and Editor Kit Selection. Loading Document Content. Saving Document Content. The Swing HTML Package. The HTML Document Model. Style Sheets and HTML Views. The HTML Editor Kit. Summary.5. Bi-Directional Text. Bi-Directional Text. Model Order and Visual Order. Caret Position and the Selection. How Bi-Directional Text Is Handled in the Swing Text Components. Summary.6. Creating Custom Table Renderers. Table Rendering. Rendering Basics. Implementing a Custom Renderer. Customizing Cells and Rows. Header Rendering. Renderers and Tooltips. Summary.7. Table Editing. Overview of the Table Editing Mechanism. An Editable Currency Table. The Table Editing Process-How It Works. Selecting an Editor. The TableCellEditor and CellEditor Interfaces. The DefaultCellEditor Class. The Mechanics of the Editing Process. Using Table Editors. A Table with a Combo Box Editor. Including Buttons in a Table. Tabbing Between Editable Cells. Designing the Edit Traversal Mechanism. Implementing a Table with TAB Edit Traversal. Summary.8. Drag-and-Drop. Drag-and-Drop Overview. The Drag Source. The Drop Target. Data Transfer. Architecture of the Java Drag-and-Drop Subsystem. Drag Source Architecture. Drop Target Architecture. Transferring Data. Implementing a Drop Target. A Simple Drop Target. A Multi-Functional Drop Target. Providing Drag-Under Feedback. Scrolling the Drop Target. Implementing a Drag Source. Implementing the JLabel Drag Source. Creating a Transferable for a JLabel. Using Drag-and-Drop with the JTree Component. The FileTree Component. The Drag Source Implementation. The Drop Target. Summary.9. The Swing Undo Package. An Undo Example. Text Component Events Revisited. A Simple Way to Handle Undoable Edits. Inside the Undo Package. UndoableEdit and AbstractUndoableEdit. A Simple UndoableEdit Example. Compound Edits. A Compound Edit Example. Compound Edits and the Text Components. The UndoManager Class. Differences Between UndoManager and CompoundEdit. Extending UndoManager. Summary.Index.show more

About Kim Topley

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.show more

Rating details

9 ratings
3.11 out of 5 stars
5 11% (1)
4 33% (3)
3 22% (2)
2 22% (2)
1 11% (1)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X