Create bookmark
Java Swing
Notes
Please login to add notes
- Table of Contents
- + Preface
-
+
Introducing Swing
- + Jump-Starting a Swing Application
-
+
Swing Component Basics
- + Understanding Actions
- Graphical Interface Events
- + Graphics Environments
- + Sending Change Events in Swing
-
+
The JComponent Class
- Inherited Properties
- Common Methods
- + JComponent Properties
- UI Delegates and UIClassIDs
- + Invalidating and Repainting
- Position, Size, and Alignment
- Adding Borders
- Working with Tooltips
- Client Properties
- Double Buffering
- Serialization
- The DebugGraphics Class
- Focus and Focus Cycle Methods
- Keyboard Events
- Accessibility
- + Events
- Constructor
- Graphics Methods
- Focus Methods
- Tooltip Methods
- Client Properties Methods
- Miscellaneous Methods
- + Responding to Keyboard Input
-
+
Labels and Icons
- + Buttons
-
+
Bounded-Range Components
- + Lists, Combo Boxes, and Spinners
- + Swing Containers
-
+
Internal Frames
- + Simulating a Desktop
-
+
The JInternalFrame Class
- Properties
- Events
- Constants
- Constructors
- JLayeredPane Methods
- Miscellaneous Public Methods
- Use of the Glass Pane
- The Metal Look-and-Feel JInternalFrame.isPalette Client Property
- The JInternalFrame.JDesktopIcon Class
- + The InternalFrameEvent Class
- + The InternalFrameListener Interface
- + The InternalFrameAdapter Class
- + The JDesktopPane Class
- + The DesktopManager Interface
- + Building a Desktop
-
+
Swing Dialogs
- + Specialty Panes and Layout Managers
- + Chooser Dialogs
- + Borders
-
+
Menus and Toolbars
-
+
Tables
- + Advanced Table Examples
- + Trees
-
+
Undo
-
+
The Swing Undo Facility
-
+
The UndoManager Class
- A Codeless Example
- Transformer?
- Properties
- Constructor
- UndoableEditListener Method
- UndoableEdit Methods
- Public Methods
- Protected Methods
- Using an Undo Manager
- Understanding the UndoManager
- + The StateEditable Interface
- + The StateEdit Class
- + The UndoableEditSupport Class
- Using Undoable Edit Support
- The CannotRedoException Class
- The CannotUndoException Class
- Extending UndoManager
-
+
The Swing Undo Facility
-
+
Text 101
- + Formatted Text Fields
-
+
Carets, Highlighters, and Keymaps
-
+
Styled Text Panes
- + The JTextPane Class
- + AttributeSets and Styles
-
+
The Document Model
-
+
Document Events
- + The DocumentListener Interface
- + The DocumentEvent Interface
- The DocumentEvent.EventType Class
- + The DocumentEvent.ElementChange Interface
- + The ElementIterator Class
- + The Segment Class
- + The AbstractDocument.Content Interface
- + The StringContent Class
- + The GapContent Class
- Undo Event Example
- + The BadLocationException Class
- + The Position Interface
- + The Position.Bias Class
-
+
Views
- + The DocumentFilter Class
- + The NavigationFilter Class
-
+
Editor Panes and Editor Kits
- + The JEditorPane Class
-
+
Overview of the Editor Kits
- + The EditorKit Class
- + The TextAction Class
- + The DefaultEditorKit Class
- Useful Actions
- A Simple Text Editor
- + The StyledEditorKit Class
-
+
The StyledEditorKit.StyledTextAction Class
- Constructor
- Protected methods
- The StyledEditorKit.FontFamilyAction class
- The StyledEditorKit.FontSizeAction class
- The StyledEditorKit.ForegroundAction class
- The StyledEditorKit.AlignmentAction class
- The StyledEditorKit.BoldAction class
- The StyledEditorKit.ItalicAction class
- The StyledEditorKit.UnderlineAction class
- + A Better Editor
- + HTML and JEditorPane
- + Hyperlink Events
- + The HTMLEditorKit Class
- + Extending HTMLEditorKit
- + Editing HTML
-
+
Writing HTML
- + Reading HTML
- + A Custom EditorKit
-
+
Drag and Drop
- + Programming with Accessibility
-
+
Look and Feel
- + Swing Utilities
-
+
Swing Under the Hood
-
+
Working with Focus
- + Multithreading Issues in Swing
-
+
Lightweight Versus Heavyweight Components
- + Painting and Repainting
-
+
Creating Your Own Component
-
+
Working with Focus
- Look-and-Feel Resources
-
+
Component Actions
- JButton
- JCheckBox
- JCheckBoxMenuItem
- JComboBox
- JDesktopPane
- JEditorPane
- JFormattedTextField
- JInternalFrame
- JLabel
- JList
- JMenu
- JMenuBar
- JMenuItem
- JOptionPane
- JPasswordField
- JPopupMenu
- JProgressBar
- JRadioButton
- JRadioButtonMenuItem
- JRootPane
- JScrollBar
- JScrollPane
- JSlider
- JSpinner
- JSplitPane
- JTabbedPane
- JTable
- JTextArea
- JTextField
- JTextPane
- JToggleButton
- JToolBar
- JToolTip
- JTree
- JViewport
- Non-JComponent Containers
- Auditory Feedback Actions
- Index
Swing is a fully-featured user interface development kit for Java applications. Building on the foundations of the Abstract Window Toolkit (AWT), Swing enables cross-platform applications to use any of several pluggable look-and-feels. Swing developers can take advantage of its rich, flexible features and modular components, building elegant user interfaces with very little code.
This second edition of Java Swing thoroughly covers all the features available in Java 2 SDK 1.3 and 1.4. More than simply a reference, this new edition takes a practical approach. It is a book by developers for developers, with hundreds of useful examples, from beginning level to advanced, covering every component available in Swing.
All these features mean that there's a lot to learn. Even setting aside its platform flexibility, Swing compares favorably with any widely available user interface toolkit--it has great depth. Swing makes it easy to do simple things but is powerful enough to create complex, intricate interfaces.
Java Swing, 2nd edition includes :
A new chapter on Drag and Drop
Accessibility features for creating a user interface meeting the needs of all users
Coverage of the improved key binding infrastructure introduced in SDK 1.3
A new chapter on JFormattedTextField and input validation
Mac OS X coverage and examples
Coverage of the improved focus system introduced in SDK 1.4
Pluggable Look-and-Feel coverage
Coverage of the new layout manager, SpringLayout, from SDK 1.4
Properties tables that summarize important features of each component
Coverage of the 1.4 Spinner component
Details about using HTML in components
A new appendix listing bound actions for each component
A supporting web site with utilities, examples, and supplemental materials
Whether you're a seasoned Java developer or just trying to find out what Java can do, you'll find Java Swing, 2nd edition an indispensable guide.
Test the closed alpha on paperc.com
Book Details
Authors
Marc Loy, Robert Eckstein, Dave Wood, James Elliott, and Brian Cole
Categories
Computers > Programming Languages > Java
Publishers
Publication year : 2002
License: All rights reserved ©
Times read: 9,558

