Murach's Beginning Java 2, SDK 1.4

This chapter shows how to code a graphical user interface (GUI) that uses Swing components such as combo boxes, radio buttons, check boxes, and text areas. The previous chapter shows how to work with other Swing components such as labels, text boxes, and buttons.

Chapter 12 How to work with a graphical user interface (part 2)
How to handle events 370
How event handling works 370
A procedure for handling events 372
How to work with controls 374
How to work with combo boxes 374
How to work with list boxes 378
How to work with scroll panes 382
How to work with borders 384
How to work with text fields and text areas 386
How to work with radio buttons 390
How to work with check boxes 394
A summary of other Swing components 396
How to work with layout managers 398
A summary of layout managers 398
How to work with the Grid Bag layout manager 400
How to set the constraints for a Grid Bag layout 402
An example that uses the Grid Bag layout manager 404
How to code low-level events 406
A summary of low-level events 406
How to work with focus events 408
How to work with keyboard events 410
How to work with adapter classes 412
The Book Maintenance application 414
The user interface 414
The Grid Bag layout and the code 416
Perspective 426
t




Murach's Beginning Java 2

Learn more about this book

Add this book to your cart


See the Java 1.5 edition