四叫川学国家性 GINEEHING OahGE Object-Oriented Design and Programming Java)
Object-Oriented Design and Programming (Java)
Topics Covered Today 3.2 Graphical User Interface 3.2. 1 Swing Components and Containers 3.2.2 Swing Event Handling
2 Topics Covered Today • 3.2 Graphical User Interface – 3.2.1 Swing Components and Containers – 3.2.2 Swing Event Handling
GUI libraries in java Abstract Windows Toolkit(AWT) since Java 1.0 Swing- Add-on since Java 1. I and integral part of Java 1.2 Third party GUI libraries like the Standard Windows Toolkit(SWT)e.g. used in eclipse Here, we use Swing
3 GUI libraries in JAVA • Abstract Windows Toolkit (AWT) since Java 1.0 • Swing - Add-on since Java 1.1 and integral part of Java 1.2 • Third party GUI libraries like the Standard Windows Toolkit (SWT) e.g. used in Eclipse Here, we use Swing!
Swing is Standard in Java 2 Platform (also known as JDK 1.2 Includes java2D Adds support for MIDi, Wav, and other audio Swing package: javax. swing. awt package: java. awt. x
4 Swing is Standard in Java 2 Platform (also known as JDK 1.2) • Includes Java2D • Adds support for MIDI, WAV, and other audio. • Swing package: javax.swing.* AWT package: java.awt.*
Reference book Thinking in Java (2nd Edition), bruce Eckel. prentice hall Chapter l3 Creating windows applets Getting Started with Swing http://java.sun.com/docs/books/tutorial/uiswing/
5 Reference Book • Thinking in Java (2nd Edition), Bruce Eckel, Prentice Hall Chapter 13 Creating Windows & Applets • Getting Started with Swing http://java.sun.com/docs/books/tutorial/uiswing/