What is AWT? How does it differ from swing ?
AWT (Abstract Window Toolkit):
AWT, or Abstract Window Toolkit, is a set of classes and APIs provided by Java for creating graphical user interfaces (GUIs) and window-based applications. AWT was introduced with the first versions of Java and is a part of the Java Foundation Classes (JFC). It provides a platform-independent way to create and manage GUI components such as buttons, text fields, windows, dialogs, and menus.
AWT components are native components, which means they are implemented using the native user interface controls of the underlying operating system. This provides a consistent look and feel across different platforms. However, AWT has some limitations and drawbacks, such as limited customization and less flexibility in terms of appearance and behavior.
Swing:
Swing is an advanced GUI toolkit built on top of AWT. It provides a more powerful and flexible set of components for creating modern and feature-rich graphical user interfaces. Swing components are often referred to as "lightweight" components because they are not directly mapped to native operating system controls. Instead, they are drawn and managed entirely by Java code.
Swing was introduced in Java 1.2 and offers several advantages over AWT:
- _____ __________ _______ _____ ________.
_____ __________ ________ _____ ____ ___.
_______ _____ _________ ________ __________ _________ _________ ________ __________ _____.
_____ _______ __________ ______ _____ _______ _____ _______ ________.
_____ ________ __________ ____ _______ _______ __________ ___ ______ ________ ________ ________.
_________ ___ ___ _______ ___.
______ ________ ______ _______ ______ _________.
_______ __________ __________ _______ __________ ___ ________.
__________ _____ _______ _____ _____.
_________ ____ ______ ______ __________ _____ _________ ___.
______ _______ ______ ___ ____ _____.
_______ ___ ___ ___ ______ _____.
_____ ______ _________ ____ ______.
_____ ______ __________ __________ _____ __________ ______.
_____ _________ _________ ____ _______ ___ _____.
_____ ______ _______ _________ _________ ________ __________ ________ _____ _____.
_____ ___ _________ _____ ___.
________ ______ _______ _______ ______ ____ _______ ___ _________ ___ ___.
______ ______ _____ _____ ___ ________ _________ _______ ___ ______ _______.
_________ _______ ________ ______ __________ ________ _____.
_______ _____ __________ ________ ___ ____ ______ ______.
__________ _______ ________ ____ ______ ______.
_______ ______ ______ _______ ______ __________ ____ ____.
___ _________ ___ ________ __________.
___ _____ _________ _____ ____ _____ _____ ________ ____ _______ ___.
___ _____ ______ ________ _______ _______ ___.
__________ ___ _____ ____ ___ ________ ____ _________ ____ ________ _____ ________.
___ _______ _______ ____ ________ ____ _____ ________ ___ ___.
_______ ____ _______ __________ ______ ________ _______.
___ ___ __________ _____ _____ ____ ____ ________.
____ _______ ____ ____ _____ __________ __________ _________ ________ ______.
___ ________ ________ ___ _________ ______ _______ __________ ___ ____ __________ _______.
_______ ______ __________ ________ ____ _________ _______ ________ ___ ____ ____ _____.
_________ _________ __________ _____ _________ ____.
________ _________ ________ ________ __________ _______ ______ ____ _____ ________.
_____ _________ __________ ________ __________.
_______ ________ _____ _______ ____.
______ ____ ___ ________ _________.
__________ ______ _____ ____ __________ _______ _____ __________ ________ ___ _____ ______.
____ __________ _________ ________ _______ _________ ______ _______.
_______ __________ _________ ______ ____ _______ _______.
_________ ___ _________ _____ ___ __________ _________.
___ _______ _______ ___ _________ __________ ________ _______ _____ __________ __________.
___ __________ ________ ________ ________ ______ ___ _______.
________ ______ ________ _____ ____ _________ ___ ________ _____ ___ ______.
______ _________ ______ ___ __________ ____ __________.
___ _________ _____ __________ __________ ________ ______ ___ ___ ________.
______ ________ _______ ____ ____ ___ ______ _________ ________.
_______ ____ _______ _______ ___ _______.
_______ _______ _______ ____ _______ _____ ____.
__________ ___ _______ _________ ____ ______ ____ ______ _______ ____ ______ _____.
__________ ______ ____ ______ _____ ________ ________.
________ _________ ______ ______ ______ _______ _____ _________ ________ ___.
_____ _____ ___ ________ ____ __________ ____ _____ ________.
___ ___ ____ _____ ____ ___ ____.
________ _____ _________ ___ __________.
___ __________ _______ __________ ______ __________ ________ ________ ______ _______ ___ _________.
_________ __________ ______ ___ _____ __________ ______ ________ ________ ___.
_____ ________ ______ ________ ___ _______ _________ __________ ________ ____ ______ ______.
_________ _____ _____ ___ ______ ____ _____ _____ ________ ____ __________ _________.
_______ _______ ____ _______ _________ ________ _______ __________ _________.
_________ ___ ______ ___ ________ _________ ____ ______ ___ _____.
______ _________ ________ _____ __________ ______.
_________ _________ __________ __________ __________ ___ _______ _________ _____.
__________ _______ _________ ____ ___ ________ ______ ________ _____ _________ ______ ______.
_____ ___ _____ ________ _________ _______.
____ __________ ____ ________ _______ ________ _________ _________ _________ ___ ________.
__________ ___ ________ ___ ____ ____ __________ ______ ____.
________ ________ __________ _________ ________ ________ _______.
_________ ________ ______ ___ ____ ______.
Get Full Answer on WhatsApp