Murach's Java SE 6
How to get started with Swing

A popular Java package called Swing is used to create applications that have a graphical user interface (GUI). This chapter teaches you how to use Swing to develop a basic GUI, while chapters 16 and 17 cover enhanced GUI features.

Chapter 15 How to get started with Swing
An introduction to the Swing classes 476
The user interface for the Future Value Calculator application 476
The inheritance hierarchy for Swing components 478
Methods of the Component class 480
How to work with frames 482
How to display a frame 482
How to set the default close operation 484
How to center a frame using the Toolkit class 486
How to work with panels, buttons, and events 488
How to add a panel to a frame 488
How to add buttons to a panel 490
How to handle button events 492
An introduction to layout managers 494
How to use the Flow layout manager 494

How to use the Border layout manager

496
How to work with labels and text fields 498
How to work with labels 498

How to work with text fields

500
The Future Value Calculator application 502
The user interface 502
The code 502




Murach's Java SE 6

Learn more about this book

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.