Introduction     to      Swing
What is Swing?                 a set of customizable graphical components
Not just!
Not only     a set of customizable graphical components             but also                      next-generation GUI tool...
Not only     a set of customizable graphical components             but also                      next-generation GUI tool...
Why was Swing born?
History <<
Java       James Gosling               1991
AWT (Abstract Window Toolkit)               is the only one toolkit to develop GUI in initial Java               is based ...
What is peer-components?
AWT (Abstract Window Toolkit)          #Prob1: similar components not the same in different OS                   => mainte...
AWT (Abstract Window Toolkit) is not enough!
Aha!!! That’s why Swing was born.
JFC (Java Foundation Classes)     JavaSoft     1997 – JavaOne Confer. in San Francisco
JFC (Java Foundation Classes)
Swing’s feature:           Pluggable Look-and-Feels           Lightweight Components           Additional Feature
Swing is based on MVC Architecture
MVC      Model: the state of data for each component      View: how you see the component      Controller: how the compone...
MVC in Swing         simplified         model-delegate
MVC in Swing         simplified         model-delegate
A Container contains components.
Two types of containers:          Top-level          General-purpose
Dig into container
Glass pane
Layered pane
Content pane
Menu pane
Let’s imagine see the real things.
Lightweight component     referred Swing components
JLabel         JButton        JCheckboxJRadioButton   JTextField     JTextArea               JPasswordField
Homeworks    Do the workshop in Introduction to Swing follow video demo.    Read Swing components and Dialog Box
Upcoming SlideShare
Loading in...5
×

1. introduction to swing

1,020

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,020
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

1. introduction to swing

  1. 1. Introduction to Swing
  2. 2. What is Swing? a set of customizable graphical components
  3. 3. Not just!
  4. 4. Not only a set of customizable graphical components but also next-generation GUI toolkit for enterprise dev
  5. 5. Not only a set of customizable graphical components but also next-generation GUI toolkit for enterprise dev
  6. 6. Why was Swing born?
  7. 7. History <<
  8. 8. Java James Gosling 1991
  9. 9. AWT (Abstract Window Toolkit) is the only one toolkit to develop GUI in initial Java is based on peer-components
  10. 10. What is peer-components?
  11. 11. AWT (Abstract Window Toolkit) #Prob1: similar components not the same in different OS => maintenance nightmare #Prob2: limited functionalities, expensive on memory.
  12. 12. AWT (Abstract Window Toolkit) is not enough!
  13. 13. Aha!!! That’s why Swing was born.
  14. 14. JFC (Java Foundation Classes) JavaSoft 1997 – JavaOne Confer. in San Francisco
  15. 15. JFC (Java Foundation Classes)
  16. 16. Swing’s feature: Pluggable Look-and-Feels Lightweight Components Additional Feature
  17. 17. Swing is based on MVC Architecture
  18. 18. MVC Model: the state of data for each component View: how you see the component Controller: how the component interacts with event
  19. 19. MVC in Swing simplified model-delegate
  20. 20. MVC in Swing simplified model-delegate
  21. 21. A Container contains components.
  22. 22. Two types of containers: Top-level General-purpose
  23. 23. Dig into container
  24. 24. Glass pane
  25. 25. Layered pane
  26. 26. Content pane
  27. 27. Menu pane
  28. 28. Let’s imagine see the real things.
  29. 29. Lightweight component referred Swing components
  30. 30. JLabel JButton JCheckboxJRadioButton JTextField JTextArea JPasswordField
  31. 31. Homeworks Do the workshop in Introduction to Swing follow video demo. Read Swing components and Dialog Box
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×