Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

1. introduction to swing

1,324 views

Published on

Published in: Technology, Education
  • Be the first to comment

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

×