Core Java Foundation Classes

Who This Book Is For. What You'll Need. How This Book Is Organized. Conventions Used in This Book. About the CD-ROM. A Note on Swing Versions. Feedback. Further Information. Acknowledgments. I. FROM AWT TO SWING. 1. Introduction to the Java Foundation Classes. What Are the Java Foundation Classes? Overview of JFC Features. The Swing Packages. The Model View Controller Architecture. Summary. 2. Frames, Labels and Buttons. The Shell of an Application: The JFrame Class. Components and Their Properties. Containers and Layout Managers. Event Handling. Using Buttons. Images on Components: Icons. Summary. 3. Managing the User Interface. Layout Managers. Working with the Application Window. Summary. 4. Graphics, Text Handling and Printing. Working with Graphics. A Graphics Application. Rendering Text. Printing Graphics and Text. Summary. II. USING SWING TO BUILD BETTER APPLICATIONS. 5. Keyboard Handling, Actions and Scrolling. Implementing Mouseless Operation. Scrolling Components. Logical Scrolling and Forcing Visibility of an Area. Implementing Scrolling with JScrollBar. Scrolling with the Keyboard. Summary. 6. Menus and Toolbars. The Menu Bar and the Menu System. Toolbars. Summary. 7. Using Standard Dialogs. Basic Dialogs. The File Selection Dialog. Summary. 8. Creating Custom Dialogs. Creating Custom Dialog Boxes. Tabbed Panes and Borders. Swing Components Often Used in Dialogs. Summary. III. ADVANCED TOPICS. 9. Text Controls. Simple Text Controls. Text Components: Under the Hood. Getting Multiple Views of a Document. Documents with Nontext elements: JTextPane and JEditorPane. Summary. 10. The Tree Control. The Tree Control. Custom Tree Rendering and Editing. Summary. 11. The Table Control. An Overview of the Table Control. The Table Model. Table Columns and the Table Column Model. The Table Control. Customized Table Rendering and Editing. Summary. 12. Multiple-Document Applications. Internal Frames. Layered Panes. Working with Internal Frames. Icons, the Desktop Pane and the Desktop Manager. An Example Multiple- Document Application. Summary. 13. The Pluggable Look-And-Feel. The Look-and-Feel and the UIManager. Changing Component Look- and-Feel. Summary. Appendices. A Class Diagrams. B Swing Components and Multithreading. Index.