Difference between Java AWT and SWING
1. AWT(Abstract Window Toolkit) is a heavy weight but Swing is a light weight.
2. Swing feel and look better than AWT components.
3. Swing is a pure java components but AWT native components.
4. AWT not have complex components but Swing has additional components like JTable, JProgressBar, JSlider, JTree etc.
5. Applet list has scrollbar but Swing JList does not support scrolling but this can be done using scrollPane.
6. Applet not support MDI(multiple document interface) window but Swing support MDI.
7. Applet default layout is FlowLayout but Swing default layout is BorderLayout.
8. AWT menu item cannot have images or radio buttons or checkboxes but Swing menu item can have images or radio buttons or checkboxes.
9. AWT do not have JMV(Java Model Viewport) but All swing components have JMV.
10. In AWT, components can be added directly on the Frame or window but in Swing while adding components on Frame or window, they have to be added on its content pane.
11. Swing has more powerful and flexible components than AWT.
Monday, May 7, 2012
Popular Posts
- Check Number is Armstrong in PL/SQL Programming
- Generate Pascal Triangle in Java - Java Code for Pascal Triangle
- Java Function Code to create Reverse Linked List of Singly Linked List (In memory pointer changes)
- Java Applet Animation Program for Moving Car
- Applets vs Applications - How Applets Differ From Applications
- PL/SQL Example to find average of three numbers
- Difference Between C++ and Java - Java Advantages over C++
- Principles of Testing - Software Testing Principles
- Java AWT vs SWING
- C program for Binary Search
No comments:
Post a Comment
Dont SPAM