Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Swing GUI Components Chapter 29 An enhanced alternative to AWT The PC does not need an appletviewer or browser Swing overcomes some AWT drawbacks.

Similar presentations


Presentation on theme: "The Swing GUI Components Chapter 29 An enhanced alternative to AWT The PC does not need an appletviewer or browser Swing overcomes some AWT drawbacks."— Presentation transcript:

1 The Swing GUI Components Chapter 29 An enhanced alternative to AWT The PC does not need an appletviewer or browser Swing overcomes some AWT drawbacks

2 AWT vs. Swing Technical: Swing written in Java User: Swing higher level and works across various platforms Programmer: Swing very little difference

3 Swing Applets and Applications Most Swing components use AWT names with a ‘J’ in front of them: Jbutton, Jframe, Japplet etc. Some new components in Swing: ImageIcons on buttons Tooltips Other examples listed in text

4 Swing components: Examples in Text JLabels Jmenu JCheckboxes JMenubar JRadiobuttons JMenuItem Jlist JTree JTextFields JTable JSlider (scrollbar) JFileChoser

5 A program example of Swing and Paint “SwingPlayBallon” Page 542-543 Text Some conversion from AWT to Swing discussed


Download ppt "The Swing GUI Components Chapter 29 An enhanced alternative to AWT The PC does not need an appletviewer or browser Swing overcomes some AWT drawbacks."

Similar presentations


Ads by Google