Javafx
Javafx
AWT is considered to be heavy-weight because its components are dependent on the underlying
Operating System. For instance, When we create an object of java. awt. Checkbox class, its underlying
Operating System will generate a checkbox for us.
The AWT is heavyweight since it uses the resources of the operating system. The Swing is mostly
lightweight since it doesn't need any Operating system object for processing.
2
. The components of Java AWT are heavy weighted. The components of Java Swing are light weighted.
4
. The execution time of AWT is more than Swing. The execution time of Swing is less than AWT.
5
. The components of Java AWT are platform dependent. The components of Java Swing are platform independent.
7
. AWT provides comparatively less powerful components. Swing provides more powerful components.
8 AWT components require java.awt package Swing components requires javax.swing package
AWT is a thin layer of code on top of the operating Swing is much larger swing also has very much richer
9 system. functionality.