The Definitive Guide to Java Swing

Front Cover
Apress, Nov 2, 2006 - Computers - 928 pages
Completely revised, expanded, and updated for version 1.4 of the Java 2 Standard Edition (J2SE), this Third Edition not only adds updated programming examples of key Swing features but rounds out the book with key concepts like printing so the title provides a more complete reference for those interested in component-based user interface programming in Java. Key areas of new and updated material include drag and drop, accessibility, printing, focus management, and deployment. From the author: One of the things I'm trying to do with this edition is to expand things a little. With prior editions, my goal was to explain Swing. If it wasn't Swing, it wasn't in the book, even if it was part of what you would normally do with Swing. In this edition, I plan on adding content on topics like printing, the AWT layout managers, and deploying with Java Web Start and the Java Plug-in. While they aren't pieces of Swing specifically, they are important/related enough that they warrant discussion with the rest of Swing.
 

Contents

Swing Overview
1
CHAPTER
3
CHAPTER
5
CHAPTER
7
CHAPTER
8
CHAPTER
10
CHAPTER
11
CHAPTER
13
GridLayout Class
349
CardLayout Class
357
OverlayLayout Class
365
Advanced Swing Containers
378
JSplitPane Class
383
JScrollPane Class
403
JViewport Class
412
Bounded Range Components
419

CHAPTER
14
Event Handling with the Swing Component Set
17
CHAPTER
18
CHAPTER
19
CHAPTER
21
Summary
57
The ModelViewController Architecture
59
Summary
65
Core Swing Components
67
APPENDIX
72
JToolTip Class
84
AbstractButton Class
98
JButton Class
104
JPanel Class
110
Toggle Buttons
115
JToggleButton Class
119
JCheckBox Class
125
JRadioButton Class
134
Summary
149
Swing Menus and Toolbars
151
Borders
211
Examining the Predefined Borders
218
Creating Your Own Borders
232
Root Pane Containers
235
JFrame Class
242
PopUps and Choosers
267
JColorChooser Class
300
JFileChooser Class
322
Summary
341
Layout Managers
343
JSlider Class
428
JProgressBar Class
439
List Model Controls
451
JList Class
463
Spinner Model Controls
509
JSpinner Editors
518
Basic Text Components
521
JTextArea Class
570
JTextPane Class
580
Advanced Text Capabilities
586
Creating Styled Text
595
The Editor Kits
607
Trees
623
TreeCellRenderer Interface
634
Editing Tree Nodes
643
TreeModel Interface
667
Summary
674
Tables
675
TableModel Interface
690
TableColumnModel Interface
707
Editing Table Cells
718
DragandDrop Support
729
Summary
740
The Pluggable Look and Feel Architecture
741
Creating a New Look and Feel
767
Using an Auxiliary Look and Feel
776
The Undo Framework
783
Accessibility
805
INDEX
847
Copyright

Other editions - View all

Common terms and phrases

About the author (2006)

John Zukowski has been involved with the Java platform since it was just called Java, since 1995. He writes a monthly column for Sun's Core Java Technologies Tech Tips and Technology Fundamentals Newsletter. He has contributed content to numerous other sites, including jGuru, DevX, Intel, and JavaWorld. He has written many other popular titles on Java, including Java AWT Reference (O'Reilly), Mastering Java 2 (Sybex), Borlands' JBuilder: No Experience Required (Sybex), Learn Java with JBuilder 6 (Apress), Java Collections (Apress), and The Definitive Guide to Swing (Apress).

Bibliographic information