+612 9045 4394
 
CHECKOUT
Up To Speed with Swing : User Intefaces with Java Foundation Classes - Steve Gutz

Up To Speed with Swing

User Intefaces with Java Foundation Classes

Paperback

Published: 1st October 1999
Ships: 7 to 10 business days
7 to 10 business days
RRP $65.99
$51.80
22%
OFF

This tutorial-style is current with the new Java JDK 1.2, including examples that accommodate recent changes to the Swing challenge. Starting with the basics and extending to intermediate and advanced areas, this revised manual is enhanced with more detailed examples and illustrations. This new edition integrates topics that were either unavailable or unstable in the first edition including actions handling, files, dialog, and printing.

Prefacep. xxi
Intended audiencep. xxiv
How this book is organizedp. xxvi
Conventionsp. xxvii
Obtaining the source codep. xxix
Special thanksp. xxx
Review process for this bookp. xxxii
About the cover illustrationp. xxxv
Getting startedp. 1
A Java refresherp. 3
What is Java?p. 4
What is AWT?p. 5
The Java event modelsp. 6
Java 1.0p. 7
Java 1.1 and beyondp. 8
JavaBeansp. 11
A review of components, listeners, and eventsp. 13
Layout manager refresherp. 16
BorderLayoutp. 16
CardLayoutp. 17
FlowLayoutp. 18
GridLayoutp. 19
GridBagLayoutp. 20
Combining multiple layoutsp. 22
Minimum software requirementsp. 23
Delivering a final productp. 25
Just-In-Time compilersp. 27
Chapter summaryp. 28
Swing basicsp. 29
What is JFC?p. 30
What is Swing?p. 30
Swing package overviewp. 31
Why use Swing?p. 33
JavaBeans compliancep. 34
Lightweight frameworkp. 34
Interaction with external resourcesp. 36
Model-View-Controller architecturep. 36
How MVC worksp. 37
What can MVC accomplish?p. 37
Custom renderingp. 38
Custom data modelsp. 38
Delegatesp. 40
What are delegates?p. 40
The ComponentUI classp. 40
Pluggable LookAndFeelp. 41
Creating UI objectsp. 43
Creating a simple componentp. 43
JComponent, the mother of Swingp. 45
Pluggable look and feelp. 46
Keystroke handlingp. 46
Action objectsp. 46
Bordersp. 46
Accessibilityp. 47
Other features of JComponentp. 47
Controlling component sizep. 47
JComponent hierarchyp. 48
JComponent constantsp. 48
JComponent fieldsp. 49
JComponent constructorsp. 49
JComponent significant method groupingsp. 49
Chapter summaryp. 53
Using Swing componentsp. 55
Frames and panelsp. 57
JFramep. 58
A JFrame applicationp. 58
JFrame hierarchyp. 61
JFrame variablesp. 61
JFrame constructorsp. 62
JFrame significant method groupingsp. 62
JAppletp. 62
A JApplet sample appletp. 63
JApplet hierarchyp. 64
JApplet variablesp. 64
JApplet constructorsp. 64
JApplet significant method groupingsp. 64
Creating simple panelsp. 65
JPanel hierarchyp. 66
JPanel constructorsp. 66
Simple border typesp. 66
Creating a custom border classp. 68
Compound border creationp. 70
Swing layout managersp. 72
JRootPane in detailp. 76
JRootPane hierarchyp. 77
JRootPane variablesp. 77
JRootPane constructorsp. 78
JRootPane significant method groupingsp. 78
Layered panesp. 78
Layered pane basicsp. 79
A layered pane examplep. 80
JLayeredPane hierarchyp. 83
JLayeredPane constantsp. 83
JLayeredPane variablesp. 84
JLayeredPane constructorsp. 84
JLayeredPane significant method groupingsp. 84
Chapter summaryp. 84
Tabbed panes, scroll panes, and split panesp. 87
Tabbed panesp. 88
Creating a tabbed panep. 90
Adding and inserting pagesp. 90
Removing pagesp. 92
Selecting pagesp. 92
Adding images to tabsp. 93
Enabling and disabling tabsp. 93
A complete JTabbedPane examplep. 94
JTabbedPane hierarchyp. 98
JTabbedPane variablesp. 98
JTabbedPane constructorsp. 98
JTabbedPane significant method groupingsp. 99
Scrolling panesp. 100
An example using JScrollPanep. 102
Controlling the scroll barsp. 104
Controlling the scrolling programmaticallyp. 105
Controlling the size of scroll barsp. 105
Creating scrollable componentsp. 106
JScrollPane hierarchyp. 108
JScrollPane constructorsp. 108
JScrollPane significant method groupingsp. 109
Split panesp. 109
Setting the divider sizep. 113
Controlling the divider positionp. 113
Intercepting JSplitPane eventsp. 114
JSplitPane hierarchyp. 115
JSplitPane constantsp. 115
JSplitPane variablesp. 116
JSplitPane constructorsp. 117
JSplitPane significant method groupingsp. 117
Advanced scrollingp. 118
Chapter summaryp. 123
Labels and buttonsp. 125
Basic user interface componentsp. 126
Labelsp. 126
A JLabel sample programp. 127
Setting fonts and colorsp. 129
Text alignmentp. 129
Adding an image to a labelp. 130
JLabel hierarchyp. 132
JLabel variablesp. 132
JLabel constructorsp. 132
JLabel significant method groupingsp. 133
AbstractButtonp. 134
Listening for button eventsp. 134
Adding icons to buttonsp. 137
Enabling and disabling buttonsp. 139
Adding a keyboard mnemonicp. 139
AbstractButton variablesp. 141
AbstractButton significant method groupingsp. 141
Push buttonsp. 143
Default buttonsp. 143
JButton constructorsp. 144
The JButton APIp. 144
Toggle buttonsp. 144
JToggleButton hierarchyp. 147
JToggleButton constructorsp. 147
Check boxesp. 148
Special layout considerationsp. 148
JCheckBox hierarchyp. 151
JCheckBox constructorsp. 151
Radio buttonsp. 152
JRadioButton hierarchyp. 152
JRadioButton constructorsp. 152
Chapter summaryp. 153
Text managementp. 155
JTextComponentp. 156
Clipboard operationsp. 158
Saving and loadingp. 158
JTextComponent hierarchyp. 159
JTextComponent constantsp. 159
JTextComponent constructorsp. 159
JTextComponent significant method groupingsp. 159
Document handlingp. 161
Document constantsp. 162
Document significant method groupingsp. 163
Text fields and password fieldsp. 165
Associating keyboard mnemonicsp. 166
Special event handlingp. 167
JTextField hierarchyp. 171
JTextField constructorsp. 171
JPasswordField hierarchyp. 172
JPasswordField Featuresp. 172
JPasswordField constructorsp. 173
JPasswordField significant method groupingsp. 173
Text areasp. 173
JTextArea hierarchyp. 176
JTextArea constructorsp. 176
JTextArea significant method groupingsp. 177
Combo boxesp. 177
Adding and removing list itemsp. 180
Selecting itemsp. 181
Allowing field editingp. 182
Other combo box tricksp. 182
JComboBox hierarchyp. 182
JComboBox constructorsp. 182
JComboBox significant method groupingsp. 183
Viewing HTML and other content typesp. 184
Listening for hyperlink changesp. 187
JEditorPane hierarchyp. 189
JEditorPane constructorsp. 189
JEditorPane significant method groupingsp. 189
Viewing RTF formatp. 190
Simple document processingp. 193
Chapter summaryp. 197
Progress bars, scroll bars, and slidersp. 199
Progress barsp. 200
JProgressBar hierarchyp. 205
JProgressBar variablesp. 205
JProgressBar constructorsp. 206
JProgressBar significant method groupingsp. 206
Scroll barsp. 207
JScrollBar hierarchyp. 211
JScrollBar variablesp. 211
JScrollBar constructorsp. 211
JScrollBar significant method groupingsp. 212
Slidersp. 212
Listening for slider activityp. 216
JSlider hierarchyp. 217
JSlider variablesp. 217
JSlider constructorsp. 218
JSlider significant method groupingsp. 218
Chapter summaryp. 219
Menus, toolbars, and actionsp. 221
Menu barsp. 224
Creating application menusp. 224
JMenuBar hierarchyp. 226
JMenuBar constructorsp. 227
JMenuBar significant method groupingsp. 227
Menusp. 227
Creating cascading menusp. 228
JMenu hierarchyp. 231
JMenu variablesp. 231
JMenu constructorsp. 231
JMenu significant method groupingsp. 232
Menu itemsp. 233
Adding graphics to menu itemsp. 239
Adding ToolTipsp. 239
Menu item keyboard mnemonicsp. 240
Responding to a menu selectionp. 241
JMenuItem hierarchyp. 241
JMenuItem constructorsp. 241
JMenuItem significant method groupingsp. 242
Check box menu itemsp. 242
Managing check box statep. 244
JCheckBoxMenuItem hierarchyp. 245
JCheckBoxMenuItem variablesp. 245
JCheckBoxMenuItem constructorsp. 245
JCheckBoxMenuItem significant method groupingsp. 246
Radio button menu itemsp. 246
JRadioButtonMenuItem hierarchyp. 248
JRadioButtonMenuItem variablesp. 248
JRadioButtonMenuItem constructorsp. 248
Pop-up menusp. 249
JPopupMenu hierarchyp. 253
JPopupMenu constructorsp. 253
JPopupMenu significant method groupingsp. 253
Toolbarsp. 254
Toolbar basicsp. 255
A toolbar with many facesp. 258
Docking and undocking toolbarsp. 259
Adding other components to a toolbarp. 260
JToolBar hierarchyp. 261
JToolBar constructorsp. 261
JToolBar significant method groupingsp. 261
Actionsp. 261
Action basicsp. 262
Common actions for menus and toolbarsp. 263
Chapter summaryp. 266
Dialogs and internal framesp. 267
Simple dialogsp. 269
Handling the close operationp. 272
Modal vs. nonmodal dialogsp. 273
A more advanced JDialog examplep. 275
JDialog hierarchyp. 280
JDialog variablesp. 280
JDialog constructorsp. 280
JDialog significant method groupingsp. 281
Option dialogsp. 282
JOptionPane hierarchyp. 286
JOptionPane constantsp. 286
JOptionPane variablesp. 287
JOptionPane constructorsp. 289
JOptionPane significant method groupingsp. 290
The color chooserp. 293
The JColorChooser dialogp. 293
JColorChooser as a componentp. 296
JColorChooser hierarchyp. 299
JColorChooser constantsp. 299
JColorChooser constructorsp. 299
JcolorChooser significant method groupingsp. 300
The file chooserp. 300
JFileChooser hierarchyp. 305
JFileChooser variablesp. 305
JFileChooser constructorsp. 306
JFileChooser significant method groupingsp. 306
Internal framesp. 307
JInternalFrame hierarchyp. 312
JInternalFrame constantsp. 312
JInternalFrame variablesp. 313
JInternalFrame constructorsp. 314
JInternalFrame significant method groupingsp. 314
Chapter summaryp. 316
List boxesp. 317
A simple JList examplep. 318
A more advanced JList examplep. 320
Listening for list activityp. 325
Custom data modelp. 325
Basic custom list renderingp. 328
Advanced custom list renderingp. 332
JList class informationp. 335
JList hierarchyp. 335
JList constructorsp. 335
JList significant method groupingsp. 336
Chapter summaryp. 338
Treesp. 341
Basic tree implementationp. 342
A basic JTree examplep. 343
Adding new tree itemsp. 345
Custom data modelsp. 348
Custom renderingp. 351
Editing tree nodesp. 357
Listening for tree actionsp. 360
Listening for tree selectionsp. 360
Listening for tree expansionsp. 362
Tips and tricks for enhancing treesp. 364
Hiding the root nodep. 365
Expanding and collapsing the treep. 365
Selecting and deselecting nodesp. 365
JTree class informationp. 366
JTree hierarchyp. 366
JTree constantsp. 366
JTree variablesp. 367
JTree constructorsp. 368
JTree significant method groupingsp. 369
Chapter summaryp. 372
Tablesp. 375
Basic table usep. 376
The simplest of table examplesp. 377
A more complex table examplep. 379
Adding a custom data modelp. 382
A simple data model examplep. 383
Adding custom renderingp. 386
Simple table cell renderingp. 386
Rendering column headersp. 392
Simple header renderingp. 392
Listening for table actionsp. 397
Detecting table selectionsp. 397
Detecting column property changesp. 399
Other tips and tricksp. 402
Eliminating the annoying gray backgroundp. 403
Intercepting mouse and keyboard eventsp. 403
Putting it all togetherp. 405
JTable class informationp. 421
JTable hierarchyp. 421
JTable constantsp. 422
JTable variablesp. 422
JTable constructorsp. 423
JTable significant method groupsp. 424
Chapter summaryp. 427
Advanced topicsp. 429
Creating custom look and feelp. 431
Model-view-controller architecture revisitedp. 432
Why create a look and feel?p. 433
Corporate standard user interfacep. 433
Ease of portabilityp. 433
New component creationp. 434
UIManager and JFC look and feelp. 434
Listing available look-and-feel librariesp. 435
Changing the current look and feelp. 437
Creating a lookp. 440
Building a new buttonp. 440
Building chrome menusp. 454
Supporting themesp. 462
Chapter summaryp. 468
Optimizing JFC applicationsp. 469
Why optimize?p. 470
Using optimization toolsp. 470
A poorly performing test casep. 470
Sun's JDK profilerp. 471
Profiling with Java WorkShopp. 474
Profiling with OptimizeItp. 475
A custom profiler classp. 477
Native compilation--the easy way outp. 479
General rules for Java optimizationp. 481
Loop optimizationp. 481
String handlingp. 483
Numerical data handlingp. 485
Native codep. 487
Other tips for optimizing Java codep. 487
Optimizing JFC applicationsp. 488
Adding threads to a JFC applicationp. 488
Using JFC timers to reduce CPU usagep. 490
Other tips for optimizing JFC applicationsp. 491
Chapter summaryp. 492
Visual development toolsp. 495
Other toolsp. 505
Sources of informationp. 515
Referencesp. 519
Indexp. 523
Table of Contents provided by Syndetics. All Rights Reserved.

ISBN: 9781884777752
ISBN-10: 1884777759
Audience: Tertiary; University or College
Format: Paperback
Language: English
Number Of Pages: 1150
Published: 1st October 1999
Publisher: Manning Publications
Country of Publication: US
Dimensions (cm): 23.5 x 18.8  x 3.3
Weight (kg): 0.93
Edition Number: 2