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:
-
Look and Feel: Swing components can have a consistent look and feel across different platforms, regardless of the underlying operating system. Swing provides its own set of "look and feel" themes, such as "Metal," "Nimbus," and "Windows," which can be easily switched.
-
Customization: Swing components
_______ _________ ________ ______ ______ ____ _________ _____.
___ _________ ________ _____ _______ _______ ______ ____.
_____ ______ __________ ________ ____ ____ _______.
__________ _______ __________ ______ _____.
___ __________ ___ _________ ___.
____ _______ ______ ___ ________ _____ _________ ____.
________ ____ ______ ______ __________ __________ _____.
______ _________ ___ ____ ________ ________ _______ ___ _______.
_________ ____ _____ __________ ____ __________ _____ ____ _____ ____.
_____ _________ _____ _______ __________ ____ _______ _______ _______ __________.
_________ __________ __________ _____ _______ _________ ___ ___ _______ _______.
_____ _____ _____ __________ ______.
_____ ______ __________ ___ _______ ______ _____ ____ ______ ________ __________.
____ _____ _______ __________ ___ ___.
___ ________ __________ _______ __________.
_______ ______ _______ _______ ______ ___ _______ ___ ___ ___ _____ _____.
_____ _________ ___ _______ ____ _____ ____ ______ __________ _____ __________.
_______ _______ _________ __________ __________ ________ _____ _______ __________ ____.
_____ ___ ___ ______ _______ _____ __________.
__________ __________ __________ ____ ______ ________ _______ _____ _______ ________.
__________ ______ ___ ________ ___ _________ ____ ________ __________.
____ __________ _______ _________ ________ ___ ________ _______ ___ _____.
________ _________ ________ ____ ________ _______ _____.
____ ______ ____ __________ _______ _____ ___.
_____ ______ ________ _____ ____ _________ ______ ___ _________ _________.
____ ______ ______ _________ _____ ___ ____ ______ ______ ________ ___.
__________ ______ ____ ____ ______ _______ ________ ___ _______ __________ _________.
_____ _______ _____ _________ ______ ___ __________ __________ _____.
_______ ___ ____ ________ ______ _______ _______.
______ ______ ________ _____ ________ ____.
___ _____ _______ ___ _________ ___.
_____ ____ _____ ______ ____ ________ __________ _______.
_________ _____ _______ _______ _______ _____ _______ _______ ____ _____.
_____ ______ __________ ________ _____ __________ _______ ___ ________ __________ __________ __________.
_______ ___ _______ ______ ________ __________ _________ ____ _____ ____ ______.
_____ ________ _________ ________ ____.
________ _______ _____ ___ ___ ________ ____ _________ _________.
_________ ________ ____ _________ _________ ________ ________ ____ _________ ________.
______ ____ __________ _______ ___ ________ ________ _______ __________.
_______ ____ _______ _____ _____ ________ __________ ___ _______.
_________ __________ ___ _______ ________ __________ _________ _____ ____.
_________ ___ _______ _________ ________ ________ _________ _____.
_______ ___ ______ _________ _________ ____ ________ _________ _____ ________.
______ ________ ________ ________ _______ ____ _________ ___ _____.
________ ___ ____ ___ _______ _____ ________ _________.
__________ ___ ____ _____ ____ _________ _____ ___ ________ _____ ______ ____.
________ ________ _________ _____ ______ _____ __________ ________ _____ _________ _______.
______ _______ ___ _______ ____ _________ _______.
__________ _____ _____ ___ ___ ___ ________ _________ ____ ______ _________.
__________ _______ ____ _______ ____ _____ ______ __________ _________ ________.
________ ______ _____ _______ ______ _______ __________ _________ _________ ____.
_______ _______ __________ _______ _____ __________ ___ __________ _______.
____ ____ ___ _________ _________ ______ __________ _______ _________ _______ ______ _______.
_______ _______ _____ _____ _________ _______ ________ _____ ____.
________ ________ ________ _______ ____.
__________ ________ _______ ______ __________ __________ ______.
___ _____ _____ ________ _______.
_______ ________ __________ ___ _______ ______ ______ ___ _____ ______ _________ ____.
________ ____ ____ __________ __________ _______ _________.
_________ _________ __________ _____ _________ _________ ____ ________.
__________ ____ ________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required