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