Introduction to Graphical User
Interfaces with Java Swing
By Paul Fischer
July 2005
Addison Wesley / Pearson Education Limited
ISBN: 0321220706
320 pages, Illustrated
$79.50 Paper Original
Designing Graphical User Interfaces (GUIs) is a key component in developing attractive, user friendly software. This book is an introduction to programming GUIs using the Java Swing library for students who have a basic/introductory knowledge of programming in Java. Swing is gaining in popularity and is becoming the main Java library for programming GUIs.
The author takes a step-by-step approach, introducing the basics of Swing to begin with and introducing increasingly more complex concepts as the reader's knowledge develops. The book will show the reader how to: design an interactive GUI; display graphics and text in GUIs; use the mouse to interact with the program; and download and display a web page in a GUI.
Contents
1. Introduction
Basics
1. Frames, Panels and Layouts
2. A First GUI
3. A Second GUI
4. Displaying a Drawing
5. Adding the Mouse
6. Interactive Graphics
7. Menus
8. More on Listeners
9. Loading, Saving and Displaying Text
10. Scrolling 11. Dialogs
12. More on Graphics
13. An Example Project
More Components and Techniques
1. Pixel Graphics
2. More Swing Components
3. Grid Bag Layout
Advanced Topics
1. Styling Text
2. Printing in Java
3. Swing and Threads
4. A Generic Graphic Package
5. Displaying HTML Documents and Accessing the Web
Appendices
A. Solutions to Selected Problems
B. Some General Remarks on Java
Return to main page of Trans-Atlantic Publications