Hardcore JFC: Conquering the Swing Architecture

Front Cover
Cambridge University Press, Aug 13, 2001 - Computers - 356 pages
Hardcore JFC is a comprehensive guide to the functionality and practical use of the Java Foundations Classes (JFC), a component library designed for the Java programming language and operating environment. It presents intermediate and advanced techniques in exploiting the power and flexibility of JFC and the Swing component set. The book describes the inner workings of Swing and how its design principles can be used to add tremendous value to Java applications. The important features of JFC components are investigated thoroughly with a focus on the comprehension of fundamentals and the pragmatic application of advanced techniques. Included are concrete illustrations of how to enhance the JFC architecture: leveraging the 'Model/View/Controller' paradigm, customizing and developing new components and techniques for creating 'look and feel' user interface classes. Explanations of design and development techniques are introduced through effective, well-constructed and reusable example code.
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Selected pages

Contents

Introduction
1
The Java Language
2
JFC Features
3
The Swing Architecture Design Goals
4
Lightweight Component Architecture
5
The ModelViewController Paradigm
7
Benefits of MVC Architecture
8
View Capabilities
10
The JMenu Class
150
Menu Items
154
JPopupMenu
161
JToolBar
165
JProgressBar
168
JSlider
170
JToolTip
174
Chooser Dialog Boxes
180

Controller Support
11
Controversial Aspects of Swing
12
The JComponent Class
15
JComponent Inheritance Tree
16
JComponent Features
17
JFC Containers
35
JFC Containment Hierarchy
38
Basic ComponentsPart 1
45
JLabel
46
Button Components
49
JFC Containers
65
Box and BoxLayout
66
Scrolling
69
JScrollBar
75
JViewport
81
JSplitPane
84
Tabbed Pane
93
The JList Component
101
ListModel Methods
102
List Model Events
106
List Model Filtering
107
List Selection
113
List Cell Rendering
129
JFC ComponentsPart 2
145
Menus
146
JOptionPane
190
The JTree Component
197
Creating a JTree
199
Tree Selection
216
Exercises
233
The JTable Component
235
Scrolling Support
237
The TableModel Interface
238
AbstractTableModel
240
JTable Column Support
263
JTable Selection Capabilities
264
JTable Rendering and Editing
276
Filtering and Sorting JTable Data
290
Exercises
303
Pluggable LookandFeel
305
The LookandFeel Philosophy
306
A Closer Look at UIDefaults
311
UIManager
315
Component UI Delegates
318
The LookAndFeel Class
320
BasicLookAndFeel
323
Borders
324
Index
341
Copyright

Other editions - View all

Common terms and phrases

Bibliographic information