What is the difference between Swing and AWT components?

Q

What is the difference between Swing and AWT components?

✍: Guest

A

AWT components are heavy-weight, whereas Swing components are lightweight. Heavy weight components depend on the local windowing toolkit. For example, java.awt.Button is a heavy weight component, when it is running on the Java platform for Unix platform, it maps to a real Motif button.

2012-08-22, 2148👍, 0💬