Index
A
Abstract Windowing Toolkit xxiii
AbstractButton 134, 139, 141, 144, 145, 152, 153
checkHorizontalKey() 142
checkVerticalKey() 142
getDisabledIcon() 142
getDisabledSelectedIcon() 142
getHorizontalAlignment() 142
getHorizontalTextPosition() 142
getIcon() 142
getPressedIcon() 142
getRolloverIcon() 142
getRolloverSelectedIcon() 142
getSelectedIcon() 142
getText() 141
getVerticalAlignment() 142
getVerticalTextPosition() 142
methods 141
setDisabledIcon() 142
setDisabledSelectedIcon() 142
setHorizontalAlignment() 142
setHorizontalTextPosition() 142
setIcon() 142
setPressedIcon() 142
setRolloverIcon() 142
setRolloverSelectedIcon() 142
setSelectedIcon() 142
setText() 141
setVerticalAlignment() 142
setVerticalTextPosition() 142
Accessibility 47
Action Objects 46
ActionEvent 14
ActionListener
8, 14, 134, 135, 137
Example 135
actionPerformed 134, 135, 137
actionPerformed() 14, 255
addAncestorListener() 114
addHyperlinkListener 188
addListSelectionListener() 325
AdjustmentEvent 14
AdjustmentListener
14
Advanced Scrolling 118
AmbySoft Inc. xxix
AncestorListener 114
animated GIF file 137
API 6
Apple 222
Application Programming
Interface 6
archive file 25
AWT xxiii, xxv, 5, 6, 14, 16, 19, 20, 22,
28, 30, 31, 33, 35, 36, 46, 58, 59, 60, 62, 65, 72, 84, 85, 96, 97, 126, 127,
129, 142, 146, 152, 153, 154, 178, 219, 223, 224
AWT See Abstract Windowing
Toolkit
B
BadLocationException 163
Book
organization xxvii
BorderFactory 67
Borders 47, 66
BevelBorder 67
CompoundBorder 67
EmptyBorder 67
Borders (continued)
EtchedBorder 67
LineBorder 67
MatteBorder 67
SoftBevelBorder 67
TitledBorder 67
BoxLayout 148, 149, 152
Button class 14
ButtonGroup 247
Buttons
Adding a Keyboard Mnemonic 139
Adding Icons 137
Enabling and Disabling 139
ButtonUI 43
bytecode 27, 470
C
C xxii, xxix, 13, 26,
30, 432
C++ xxii, 30, 470
CardLayout 18
central processing unit 4
Checkbox 148
Checkbox class 14
Checkbox Menu Items 242
Choice
class 14
ChromeMenuUI 459
CLASSES.ZIP file 25
Clipboard Operations
158
Color Chooser 293
Column Headers 392
COM 12, 13
Comboboxes
177
Communicator 24
Component class 5
Component Object Model 12
ComponentUI 40, 41, 42, 43
Container class 14
ContainerEvent 14
ContainerListener 14
Controller 10
CPU 4
createScrollPaneForTable() 403
createUI() 445
Creating Application
Menus 224
Custom Data Models 38
Custom Rendering 38
D
DefaultCellEditor 358
DefaultDataModel
385
Delegates 40
Dialog boxes 268
Dialog class 14
DISPOSE_ON_CLOSE 281
DO_NOTHING_ON_CLOSE 281
Document 161
setEditorKit() 191
Document Handling 161
E
EditorKit 184, 190
F
File Chooser 300
FileDialog 300, 316
FlowLayout 22
Frame class 14
G
getContentPane() 60
getGlassPane() 77
getListCellRenderer() 330
getTableCellRendererComponent() 389, 394
getTreeCellRendererComponent()
354
getValueAt() 385
glass pane 77
GridBagConstraints 20
H
handleEvent 5, 13
HIDE_ON_CLOSE 281
HORIZONTAL_SPLIT 116
HotJava 24
HTML 157, 184, 193, 197
HTMLEditorKit 190
Hummingbird Communications 4
HyperlinkEvent 188
I
I18N.JAR file 25
IBM 4
IllegalArgumentException 118
installUI() 445
Internal Frames 307
internationalized applications 25
Internet 7
Internet Explorer 7, 24
invokeAndWait() 489
invokeLater() 489
ItemEvent 14
ItemListener
14
J
JApplet 58, 62, 63, 84, 222
constructors 64
createRootPane() 64
getContentPane() 64
getGlassPane() 64
getJMenuBar() 64
getLayeredPane() 64
getRootPane() 64
methods 64
setContentPane() 64
setGlassPane() 64
setJMenuBar() 64
setLayeredPane() 64
setRootPane() 64
variables 64
Java
bytecode 4
Coding Standards xxix
Event Models 6
Just-In-Time Compilers 27
Lightweight Framework 34
Listeners and Events 13
What is Java? 4
Java Development Kit See
JDK
Java Foundation Classes 30
Java Runtime Environment 25, 27, 28
Java, Just-In-Time compilers 27
JavaBeans 11, 12, 13, 28, 34
JavaOne
xxiii
JavaOS 4, 5
JavaSoft 4, 28, 212
JButton 43, 45, 134, 135, 137,
143, 144, 153, 332, 468
API 144
constructors 144
JCheckBox 145, 148, 152,
332
constructors 151
Special Layout Considerations 148
JCheckBoxMenuItem 242, 243, 244
Constructors 245
Example 243
getSelectedObjects() 246
getState() 246
Managing Checkbox State 244
Methods 246
setState() 244, 246
Variables 245
JColorChooser 293, 316
as a Component 296
Constants 299
Constructors 299
createDialog() 300
Dialog 293
getColor() 300
Methods 300
setColor() 300
showDialog() 300
JComboBox 177, 178, 360
Adding and Removing List Items 181
Allowing Field Editing 182
Example 179
Selecting Items 181
JComponent 29, 31,
46, 47, 53, 88, 114, 126, 134, 140, 144, 255, 307
addAccessibleSelection() 52
clearAccessibleSelection() 52
constants 48, 49
constructors 49
createToolTip() 52
doAccessibleAction() 52
getAccessibleActionCount() 52
getAccessibleActionDescription() 52
getAccessibleAt() 52
getAccessibleChild() 52
getAccessibleChildrenCount() 52
JComponent (continued)
getAccessibleDescription() 52
getAccessibleName() 52
getAccessibleParent()
52
getAccessibleRole() 52
getAccessibleSelection() 52
getAccessibleSelectionCount() 52
getAccessibleStateSet() 52
getAccessibleText() 52
getAccessibleValue() 52
getActionForKeyStroke() 51
getAlignmentX() 51
getAlignmentY() 51
getBorder() 51
getBounds() 51
getComponentGraphics() 50
getConditionForKeyStroke() 51
getGraphics() 50
getHeight() 51
getInsets() 51
getLocation() 51
getMaximumAccessibleValue() 52
getMaximumSize() 51
getMinimumAccessibleValue() 52
getMinimumSize() 51
getNextAccessibleSibling() 52
getNextFocusableComponent() 50
getPreferredSize() 51
getPreviousAccessibleSibling() 52
getRegisteredKeyStrokes() 51
getSize() 51
getToolTipLocation() 52
getToolTipText() 52
getUIClassID() 50
getWidth() 51
getX() 51
getY() 51
grabFocus() 50
hasFocus() 50
isDoubleBuffered() 52
isFocusCycleRoot() 50
isFocusTraversable() 50
isOptimizedDrawingEnabled() 50
isPaintingTile() 50
isRequestFocusEnabled() 50
methods 50
paintBorder() 50
paintChildren() 50
paintComponent() 50
paintImmediately() 50
processFocusEvent() 50
registerKeyboardAction() 51
removeAccessibleSelection() 52
repaint() 50
requestDefaultFocus() 50
requestFocus() 50
selectAllAccessibleSelection() 52
setAccessibleDescription() 52
setAccessibleName() 52
setAccessibleParent() 52
setAccessibleValue() 52
setAlignmentX() 51
setBorder() 51
setBounds() 51
setDebugGraphicsOptions() 50
setDoubleBuffered() 52
setMaximumSize() 51
setMinimumSize() 51
setNextFocusableComponent() 50
setPreferredSize() 51
setRequestFocusEnabled() 50
setToolTipText() 52
unregisterKeyboardAction() 51
update() 50
updateUI() 50
variables 49
JContentPane 269
JDesktopPane 310
JDialog 269, 274, 275, 298, 316
Advanced Example 275
Constructors 280
getContentPane() 281
getDefaultCloseOperation() 281
getGlassPane() 281
getLayeredPane() 281
getRootPane() 281
isModal() 281
Methods 281
Modal 273
setContentPane() 281
setDefaultCloseOperation() 281
setGlassPane()
281
setLayeredPane() 281
setModal() 281
setRootPane() 281
Variables 280
JDK xxii, 5, 24, 25, 27,
432
JEditorPane 184, 190, 193
Example
185, 192
Listening for Hyperlink Changes 187
JFC xxiv, 6, 23, 30, 33, 428
JFileChooser 301, 316
Constructors 306
getLocationTitle() 306
getSelectedFile() 306
Methods 306
setChoosableFileTypes() 307
Variables 305
JFrame 58, 59, 60, 62, 63,
65, 84, 135, 137, 222, 269
constructors 62
createRootPane() 62
getContentPane() 62
getDefaultCloseOperation() 62
getGlassPane() 62
getLayeredPane() 62
getRootPane() 62
methods 62
setDefaultCloseOperation() 62
setGlassPane()
62
setLayeredPane() 62
setRootPane() 62
variables 61, 64
JGlassPane 269
JInternalFrame 307, 316
addInternalFrameListener() 316
Constants 312
Constructors 314
Example 311
getContentPane() 314
getGlassPane() 315
getLayeredPane() 315
getMenuBar() 314
getRootPane() 315
getTitle() 315
isClosable() 315
isClosed() 315
isIcon() 315
isIconifiable() 315
isMaximum() 315
isResizable() 315
Methods 314
moveToBack() 315
moveToFront() 315
removeInternalFrameListener() 316
setClosable() 315
setClosed() 315
setContentPane() 315
setGlassPane() 315
setIcon() 315
setIconifiable() 315
setLayeredPane() 315
setMaximizable() 315
setMaximum() 315
setMenuBar() 314
setResizable() 315
setRootPane() 315
setTitle() 315
setVisible() 315
toBack() 315
toFront() 315
Variables 313
JIT 27
JLabel 126, 137,
139, 334
Adding an Image 130
checkHorizontalKey() 133
checkVerticalKey() 133
constructors 132
Example 127
getDisabledIcon() 133
getDisplayedMnemonic() 133
getHorizontalAlignment() 133
getHorizontalTextPosition() 133
getIcon() 133
getIconTextGap() 133
getLabelFor() 133
getText() 133
getVerticalAlignment() 133
getVerticalTextPosition() 133
methods 133
setDisabledIcon() 133
setDisplayedMnemonic() 133
setHorizontalAlignment() 133
setHorizontalTextPosition() 133
setIcon() 133
setIconTextGap() 133
setLabelFor() 133
setText() 133
Setting Fonts and Colors 129
setVerticalAlignment() 133
JPopupMenu
(continued)
setVerticalTextPosition() 133
Text Alignment 129
variables 132
JLayeredPane 79, 80, 269
constants 77, 78, 80, 83
constructors 78, 84
getComponentsInLayer() 84
getIndexOf() 84
getLayer() 84
getPosition() 84
highestLayer() 84
insertIndexForLayer() 84
lowestLayer() 84
methods 78, 84
moveToBack() 84
moveToFront() 84
putLayer() 84
setLayer() 84
setPosition() 84
variables 77, 84
JList 318, 339, 342,
389, 397
addListSelectionListener() 337
addSelectionInterval() 338
Advanced Custom List Rendering 332
Advanced Example 320
clearSelection() 338
Constructors 335, 366, 421
Custom Data Model 325
Custom List Rendering 328
ensureIndexIsVisible() 337
Example 318
getAnchorSelectionIndex() 338
getCellBounds() 337
getCellRenderer() 336
getFirstVisibleIndex() 337
getFixedCellHeight() 336
getFixedCellWidth() 336
getLastVisibleIndex() 337
getLeadSelectionIndex() 338
getMaxSelectionIndex() 338
getMinSelectionIndex() 338
getModel() 337
getPrototypeCellValue() 336
getSelectedIndex() 338
getSelectedIndices() 338
getSelectedValue() 338
getSelectedValues() 338
getSelectionBackground() 336
getSelectionForeground() 336
getSelectionMode() 337
getValueIsAdjusting() 338
getVisibleRowCount() 336
indexToLocation() 337
isSelectedIndex() 338
isSelectionEmpty() 338
Listening for List Activity 325
locationToIndex() 337
Methods 336
removeListSelectionListener() 337
removeSelectionInterval() 338
setCellRenderer() 336
setFixedCellHeight() 336
setFixedCellWidth() 336
setListData() 337
setModel() 337
setPrototypeCellValue() 336
setSelectedIndex() 338
setSelectedIndices() 338
setSelectedValue() 338
setSelectionBackground() 336
setSelectionForeground() 336
setSelectionInterval() 338
setValueIsAdjusting() 338
setVisibleRowCount() 336
JMenu 228
add() 232
Adding Menu Items 228
addMenuListener() 233
addSeparator 231
addSeparator() 232
Constructors 231
Creating Cascading Menus 228
getDelay() 232
getItem() 233
getItemCount() 233
getMenuComponent() 233
getMenuComponentCount() 233
getMenuComponents() 233
getPopupMenu() 232
insert() 232
insertSeparator() 232
isMenuComponent() 233
isPopupMenuVisible() 232
isSelected() 232
Methods 232
remove() 233
removeMenuListener() 233
setDelay() 232
setPopupMenuVisible() 232
setSelected() 232
Variables 231
JMenuBar 224
add 228
add() 227
Constructor 227
Creating Application Menus 224
Example 224, 229
getHelpMenu() 227
getMenu() 227
getMenuCount() 227
getSelectionModel() 227
isSelected() 227
Methods 227
remove() 227
setHelpMenu() 227
setSelected() 227
setSelectionModel() 227
JMenuItem 233,
234, 242, 246, 266, 459
Adding Graphics 239
Constructors() 241
Example 231, 234, 238
getAccelerator() 242
isArmed() 242
Keyboard Mnemonics 240
Methods 242
Responding to a Menu Selection 241
setAccelerator() 242
setArmed() 242
setEnabled() 242
setIcon() 239
setToolTipText() 239
JOptionPane 282,
283, 316
Anatomy 282
Constructors 289
createDialog() 291
createInternalFrame() 292
getDesktopPaneForComponent() 292
getFrameForComponent() 292
getIcon() 292
getInitialSelectionValue() 292
getInitialValue() 292
getInputValue() 292
getMessage() 292
getMessageType() 292
getOptions() 292
getOptionType() 292
getRootFrame() 292
getSelectionValues() 292
getValue() 292
getWantsInput() 292
Methods 290
selectInitialValue() 292
setIcon() 292
setInitialSelectionValue() 292
setInitialValue() 292
setInputValue() 292
setMessage() 292
setMessageType() 292
setOptions() 292
setOptionType() 292
setRootFrame() 292
setSelectionValues() 292
setValue() 292
setWantsInput() 292
showConfirmDialog() 291
showInputDialog() 290
showInternalInputDialog() 290
showInternalMessageDialog() 290
showInternalOptionDialog() 291
showMessageDialog() 290
showOptionDialog() 291
Variables 287
JPanel 58, 65, 67, 85, 90,
91, 96, 97, 149
constructors 66
setDoubleBuffer() 66
JPasswordField 172,
173
JPopupMenu 249, 252, 266
add() 253
addPopupMenuListener() 253
addSeparator() 253
Constructors 253
Example 250, 252
getSelectionModel() 253
insert() 253
isVisible() 254
Methods 253
removePopupMenuListener() 253
setLocation() 254
setPopupSize() 254
setSelectionModel() 253
JPopupMenu
(continued)
setVisible() 254
show() 254
JProgressBar 200, 201, 219
addChangeListener() 206
Constructors 206
createChangeListener() 206
Example 202
getMaximum() 206
getMinimum() 206
getModel() 206
getValue() 206
Methods 206
removeChangeListener() 206
setMaximum() 206
setMinimum() 206
setModel() 206
setValue() 206
Variables 205
JRadioButton 145, 148, 152,
246
constructors 152
JRadioButtonMenuItem
246, 247
Constructors 248
Example 247
Variables 248
JRE 25, 26, 27
JRootPane 77, 269
JScrollBar 207, 219
addChangeListener() 212
Constructors 211
createChangeListener() 212
Example 208
getMaximum() 212
getMinimum() 212
getModel() 212
getValue() 212
Methods 212
removeChangeListener() 212
setMaximum() 212
setMinimum() 212
setModel() 212
setValue() 212
Variables 211
JScrollPane 100, 101, 102
Controlling ScrollBars 104
createHorizontalScrollBar() 109
createVerticalScrollBar() 109
createViewport() 109
Creating Scrollable Components 106
Example 102
getColumnHeader() 109
getHorizontalScrollBar() 109
getHorizontalScrollBarPolicy() 109
getRowHeader() 109
getVerticalScrollBar() 109
getVerticalScrollBarPolicy() 109
getViewport() 109
getViewportBorder() 109
methods 109
setColumnHeader() 109
setColumnHeaderView() 109
setHorizontalScrollBarPolicy() 109
setRowHeader() 109
setRowHeaderView() 109
setVerticalScrollBarPolicy() 109
setViewport() 109
setViewportBorder() 109
setViewportView() 109
JSlider 212, 219
addChangeListener() 218
Constructors 218
createChangeListener() 218
createStandardLabels() 219
Example 214
getExtent() 218
getLabelTable() 219
getMajorTickSpacing() 219
getMaximum() 218
getMinimum() 218
getMinorTickSpacing() 219
getModel() 218
getSnapToTicks() 219
getValue() 218
Listening for Slider Activity 216
Methods 218
removeChangeListener() 218
setExtent() 218
setLabelTable() 219
setMajorTickSpacing() 219
setMaximum() 218
setMinimum() 218
setMinorTickSpacing() 219
setModel() 218
setSnapToTicks() 219
setValue() 218
updateLabelUIs() 219
Variables 217
JSplitPane 110, 114
addImpl() 118
constructors 117
Example 110
getBottomComponent() 118
getDividerLocation() 117
getDividerSize() 117
getLastDividerLocation() 117
getLeftComponent() 118
getMaximumDividerLocation() 117
getMinimumDividerLocation() 117
getOrientation() 118
getRightComponent() 118
getTopComponent() 118
Intercepting Events 114
isContinuousLayout() 118
methods 117
remove() 118
removeAll() 118
resetToPreferredSizes() 117
setBottomComponent() 118
setContinuousLayout() 118
setDividerLocation() 117
setDividerSize() 117
setLastDividerLocation() 117
setLeftComponent() 118
setOrientation() 118
setRightComponent() 118
setTopComponent() 118
variables 116
JTabbedPane 88, 90, 91, 92,
94, 96
addChangeListener() 99
Adding and Inserting Pages 90
addTab() 99
constructors 99
createChangeListener() 99
getComponentAt() 99
getIconAt() 100
getModel() 100
getSelectedComponent() 99
getSelectedIndex() 99
getTabCount() 100
getTitleAt() 100
indexOfComponent() 99
indexOfTab() 99
insertTab() 99
methodS 99
removeChangeListener() 99
removeTabAt() 99
Removing Pages 92
Selecting Pages 92
setComponentAt() 99
setIconAt() 100
setModel() 100
setSelectedComponent() 99
setSelectedIndex() 99
setTitleAt() 100
variables 98
JTable 376, 405
addColumn() 426
addColumnSelectionInterval() 426
Adding a Custom Data Model 382
addRowSelectionInterval() 425
Basic use 376
clearSelection() 425
Complex Example 379
Constants 422
Constructors 423
convertColumnIndexToModel() 426
convertColumnIndexToView() 426
createDefaultColumnsFromModel() 425
createScrollPaneForTable() 424
Custom Rendering 386
Detecting Column Property Changes 399
Detecting Table Selections 397
editCellAt() 427
Eliminating Gray Background 403
getAutoCreateColumnsFromModel() 425
getAutoResizeMode() 425
getCellEditor() 427
getCellSelectionEnabled() 425
getColumn() 426
getColumnClass() 426
getColumnCount() 426
getColumnModel() 427
getColumnName() 426
getColumnSelectionAllowed() 425
getDefaultEditor() 425
getDefaultRenderer() 425
getEditingColumn() 427
getEditingRow() 427
getEditorComponent() 427
getGridColor() 425
getIntercellSpacing() 424
getModel() 427
JTable (continued)
getRowCount() 426
getRowHeight() 424
getSelectedColumn() 426
getSelectedColumnCount() 426
getSelectedColumns() 426
getSelectedRow() 426
getSelectedRowCount() 426
getSelectedRows() 426
getSelectionBackground() 426
getSelectionForeground() 426
getShowHorizontalLines() 425
getShowVerticalLines() 425
getTableHeader() 424
getValueAt() 426
Intercepting Mouse and Keyboard Events 403
isCellEditable() 427
isCellSelected() 426
isColumnSelected() 426
isEditing() 427
isRowSelected() 426
ListSelectionModel() 427
Methods 424
moveColumn() 426
removeColumn() 426
removeColumnSelectionInterval() 426
removeRowSelectionInterval() 426
Rendering Column Headers 392
selectAll() 425
setAutoCreateColumnsFromModel() 425
setAutoResizeMode() 425
setCellEditor() 427
setCellRenderer() 387
setCellSelectionEnabled() 425
setColumnModel() 427
setColumnSelectionAllowed() 425
setColumnSelectionInterval() 425
setDefaultEditor() 425
setDefaultRenderer() 425
setEditingColumn() 427
setEditingRow() 427
setGridColor() 425
setIntercellSpacing() 424
setModel() 427
setRowHeight() 424
setRowSelectionAllowed() 425
setRowSelectionInterval() 425
setSelectionBackground() 426
setSelectionForeground() 426
setSelectionMode() 425
setSelectionModel() 427
setShowGrid() 425
setShowHorizontalLines() 425
setShowVerticalLines() 425
setTableHeader() 424
setValueAt() 426
Simple Example 377
sizeColumnsToFit() 425
Variables 422
JTextArea 161, 173, 332
Example 175
JTextComponent 156, 174, 176,
177, 197
Clipboard Operations 158
Saving and Loading Files 158
JTextField
161, 165, 174, 197, 332
Associating Keyboard
Mnemonics 166
Special Event Handling 167
JTextPane 193
JToggleButton 134, 144, 145, 148
constructors 147
JToolBar 255, 266
add() 261
addSeparator() 261
Basic Implementation 255
Constructors 261
Docking and Undocking 259
getComponentAtIndex() 261
getComponentIndex() 261
Methods 261
setFloatable() 259
JToolbar
Adding other Components 260
Example 255
JTree 342, 344, 350
Adding New Items 345
addSelectionInterval() 370
addSelectionPath() 370
addSelectionPaths() 370
addSelectionRow() 370
addSelectionRows() 370
addTreeExpansionListener() 371
addTreeSelectionListener() 372
Advanced Example 345
clearSelection() 366, 370
collapsePath() 365, 371
collapseRow() 371
Constants 366
Constructors 368
Custom Data Models 348
Custom Rendering 351
Editing Nodes 357
Enhancing 364
Example 343
Expanding and Collapsing 365
expandPath() 365, 371
expandRow() 371
getCellEditor() 369
getCellRenderer() 369
getClosestPathForLocation() 371
getClosestRowForLocation() 371
getEditingPath() 369
getInvokesStopCellEditing() 369
getLastSelectedPathComponent() 370
getLeadSelectionPath() 370
getLeadSelectionRow() 370
getMaxSelectionRow() 370
getMinSelectionRow() 370
getModel() 369
getPathBounds() 371
getPathForLocation() 371
getPathForRow() 371
getRowBounds() 371
getRowCount() 370
getRowForLocation() 371
getRowForPath() 371
getSelectionCount() 370
getSelectionModel() 371
getSelectionPath() 370
getSelectionPaths() 370
getSelectionRows() 370
getShowsRootHandles() 369
Hiding the Root Node 365
isCollapsed() 371
isEditable() 369
isEditing() 369
isExpanded() 371
isFixedRowHeight() 369
isLargeModel() 370
isPathEditable() 369
isPathSelected() 370
isRootVisible() 369
isRowSelected() 370
isSelectionEmpty() 370
isVisible() 371
Listening for Expansions 362
Listening for Selections 360
makeVisible() 371
Methods 369
removeSelectionInterval() 370
removeSelectionPath() 366, 370
removeSelectionPaths() 370
removeSelectionRow() 370
removeSelectionRows() 370
removeTreeExpansionListener() 371
removeTreeSelectionListener() 372
scrollPathToVisible() 371
scrollRowToVisible() 371
Selecting and Deselecting Nodes 365
setCellEditor() 369
setCellRenderer() 369
setEditable() 369
setInvokesStopCellEditing() 369
setLargeModel() 370
setModel() 369
setRootVisible() 365, 369
setRowHeight() 369
setSelectionInterval() 370
setSelectionModel() 371
setSelectionPath() 366, 370
setSelectionPaths() 370
setSelectionRow() 370
setSelectionRows() 370
setShowsRootHandles() 369
startEditingAtPath() 369
stopEditing() 369
Variables 367
K
Keyboard Mnemonic 139
Keystroke
Handling 46
L
Labels 126
Layered Panes 78
Layout Manager 16, 57, 72, 73, 79, 87
BorderLayout 16
BoxLayout 73
CardLayout 17
Layout Manager (continued)
FlowLayout 18
GridBagLayout 20
GridLayout 19
OverlayLayout 73
ViewportLayout 73
Layouts
Combining 22
List Boxes 317
List
class 14
ListSelectionListener 397
Look and Feel 41, 46
Architecture 432
Basic 42, 440
Chrome 440
Creating 440
Justification for 433
Listing Available 435
Macintosh 42
Motif 42, 439
Selecting 437
Themes 462
Windows 439
M
MacIntosh 42
MDI 307
Menu
Class hierarchy 223
Menu Bars
224
Menu Items 233
MenuBarUI 455
MenuItemUI 455
Menus 222, 227,
261
MenuUI 455
MessageBox API 316
Microsoft xxii, xxix, 6, 7, 12,
23, 24, 26, 27, 34, 42, 88, 141, 222
Component Object Model 12
Visual Basic xxii,
12
Windows 6, 7, 12, 23, 26, 27, 34, 42, 88,
141, 190, 307, 432
MIME 184
Model 10
Model-View-Controller 10
Motif 34, 42, 43
mouseClicked() 405, 408
Multi-Document Interface
307
MULTIPLE_INTERVAL_SELECTION 338
MVC 10, 13, 29, 36, 37, 38, 432
architecture 11
N
Native Compilation 479
Navigator 7
Netscape 4, 7, 24, 30
NOTEPAD 23
O
Optimization
General rules 481
JFC
Applications 488
Custom Rendering 491
Look and Feel 492
Threads 488
Using Timers 490
Loops 481
Native Code 487
Numerical Data Handling 485
OptimizeIt 475
String Handling 483
Tools 470
OptimizeIt 475
Option
Dialogs 282
P
paintImmediately() 204
Pascal 27
PasswordFields 165
PDA 4
Personal Digital Assistant 4
Pluggable LookAndFeel 41
Popup Menus 249
Profile
Custom profiling class 477
OptimizeIt 475
Profiler 471
Progress
Bars 200
Push Buttons 143
R
Radio Buttons
152
RadioButton Menu Items 246
root pane 77
RT.JAR file 25
RTFEditorKit 190
run() 490
S
Scroll
bars 207
Scrollable
getPreferredScrollableViewportSize() 106
getScrollableBlockIncrement() 107
getScrollableTracksViewportHeight() 107
getScrollableTracksViewportWidth() 107
getScrollableUnitIncrement() 107
Scrollable Interface 106
ScrollBar
AWT 213
ScrollBar class 14
Scrolling
Panes 100
ScrollPaneLayout 101
setAutoCreateColumnsFromModel() 385
setDisplayedMnemonic 166
setJMenuBar() 225
setLabelFor 166
setLookAndFeel() 437
setMnemonic 240
Simple Document Processing 193
SINGLE_INTERVAL_SELECTION 338
SINGLE_SELECTION 338
Sliders 212
SmartCard 4
Software Requirements 23
Split Panes 110
STYLEPAD
176
Sun 222
Sun Microsystems xxii, xxiii, 4, 8, 12, 24, 30
Swing
xxiii, xxv, 6, 10, 29, 30, 34
Dialog class
Hierarchy 269
Package Overview 31
Reasons for Using 33
SWINGSET 179
SwingUtilities 489
T
Tabbed Panes 88
Text Areas 173
TextArea 162
TextArea class 14
TextComponent
class 14
TextEvent 14, 158
TextField 162
TextField class 14
TextListener 14, 15, 158
textValueChanged() 15
Themes 462
TitledBorder 71, 72
Toggle Buttons 144
Toolbars 254
ToolTips
Adding to Menus 239
TreeCellRender 354,
372
treeCollapsed() 363
treeExpanded() 363
TreePath 361, 366
TreeSelectionListener 360
U
UIManager 434
UNICODE 165
uninstallUI() 445
UNIX xxii, 23, 26, 27, 42
URL 184
USENET 421
V
valueChanged() 361, 399
VERTICAL_SPLIT 116
View 10
Virtual Machine See VM
Visual Cafˇ
480
VM xxiii, 16, 25, 92, 129, 445, 471
W
Window class 14
WindowConstants 273
WindowEvent 14
WindowListener 14, 273
Windows
MessageBox API 282
WORDPAD 23
X
Xerox 222