0% found this document useful (0 votes)
11 views

Javafx

Uploaded by

alazaraabate
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Javafx

Uploaded by

alazaraabate
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Why is AWT called heavy weight?

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.

Which is lightweight Swing or AWT?

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.

The Swing Components are built on the top of AWT.

1 Swing is a part of Java Foundation Classes and is used to


. Java AWT is an API to develop GUI applications in Java create various applications.

2
. The components of Java AWT are heavy weighted. The components of Java Swing are light weighted.

3 Java AWT has comparatively less functionality as


. compared to Swing. Java Swing has more functionality as compared to AWT.

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.

6 MVC( Model-View-Controller Pattern)pattern is not


. supported by AWT. MVC pattern is supported by Swing.

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.

1 Swing is also called as JFC(java Foundation classes). It is part


0 AWT stands for Abstract windows toolkit . of oracle’s JFC.

1 Using AWT , you have to implement a lot of things


1 yourself . Swing has them built in.
JavaFX
Software
Description
JavaFX is a software platform for creating and delivering desktop applications, as well as rich web
applications that can run across a wide variety of devices. JavaFX has support for desktop
computers and web browsers on Microsoft Windows, Linux, and macOS, as well as mobile devices
running iOS and Android.
The applications built in JavaFX, can run on multiple platforms including Web, Mobile
and Desktops.

JavaFX is intended to replace swing in Java applications as a GUI framework.


However, It provides more functionalities than swing. Like Swing, JavaFX also
provides its own components and doesn't depend upon the operating system. It is
lightweight and hardware accelerated. It supports various operating systems
including Windows, Linux and Mac OS.

You might also like