Herong's Tutorial Notes on Swing
Version 3.05
Dr. Herong Yang
Copyright © 1997-2006 by Dr. Herong Yang. All rights reserved.
Table of Contents
About This Book
Swing
- What Is Swing?
- SwingHello.java - My First Swing Program
Graphics Environment
- Local Graphics Environment
- Screen Information of Default Toolkit
- Screen Resolution
Swing JFrame
- Closing Frame and Terminating Application
- Interrupting Frame Threads
- Displaying Chinese Characters in Frame Title
- Drawing Graphics in Frames
- Drawing Chinese Characters in Frames
Swing JLabel
- Creating Labels
- Creating Labels with Chinese Characters
Swing JButton
- My First JButton
- Handling Button Actions
Swing JRadioButton
- JRadioButton and Related Classes
- JRadioButton and Event Listeners
- Selected Radio Button
Swing JTextField
- JTextField and Related Classes
- JRadioButton and Event Listeners
Swing JInternalFrame
- JInternalFame and Related Classes
- Creating Internal Frames
- Internal Frame Listeners
Layouts of Components
- What Is a Layout?
- BorderLayout
- FLowLayout
- BoxLayout
- GridLayout
- GridBagLayout
Look and Feel
- LookAndFeel and UIManager
- LookAndFeelTest.java
References
Key Words:
AWT, book, button, Chinese, code, component, event, example, frame, free, graphics,
GUI, internal frame, Java, JDK, JFC, language, label, listener, look and feel,
MVC, online, radio button,
resolution, screen, Swing, text field, thread, toolkit, tutorial, Unicode
|