Contenu connexe Similaire à 1. introduction to swing Similaire à 1. introduction to swing (20) 1. introduction to swing4. Not only
a set of customizable graphical components
but also
next-generation GUI toolkit for enterprise dev
5. Not only
a set of customizable graphical components
but also
next-generation GUI toolkit for enterprise dev
8. Java
James Gosling
1991
9. AWT (Abstract Window Toolkit)
is the only one toolkit to develop GUI in initial Java
is based on peer-components
11. AWT (Abstract Window Toolkit)
#Prob1: similar components not the same in different OS
=> maintenance nightmare
#Prob2: limited functionalities, expensive on memory.
16. Swing’s feature:
Pluggable Look-and-Feels
Lightweight Components
Additional Feature
18. MVC
Model: the state of data for each component
View: how you see the component
Controller: how the component interacts with event
30. JLabel JButton JCheckbox
JRadioButton JTextField JTextArea
JPasswordField
31. Homeworks
Do the workshop in Introduction to Swing follow video demo.
Read Swing components and Dialog Box