Your SlideShare is downloading. ×
1. introduction to swing
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

1. introduction to swing

949
views

Published on

Published in: Technology, Education

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
949
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
22
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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