Swing
What is Swing?
Swing is a new graphical user interface component kit that simplifies
and streamlines the development of windowing components.
Windowing components are the visual components
(such as menus, tool bars, dialogs and the like) that are used in graphically
based applets and applications.
What can I do with Swing?
You can write nice graphical user interface application with Swing.
some simple programs look like
What do swing components look like?
You can go to Swing component gallery to get a full index of swing components.
In below are some common components we use:
JButton
|
JLabel
|
JIcon
|
JCheckBox
|
JList
|
JSlider
|
What is the relation between Java and Swing?
Swing is just a package in java, though it is a really big package. Using swing
is no difference from using other classes in java. You can read the swing
documents online.
Preparation
- You should know how to use the java doucment.
As a test, please go to the class Point and class Rectangle and see if you know
how to use them. - Make sure you know the basic syntax of Java we learned for the pass 2
weeks. these include :
- how to use constructors.
- how to use public members and public variables.
- how to extends class and use the superclass' constructors and members.