What is the difference between AWT and Swing?
AWT components are platform dependent.
Swing components are made in purely java and they are platform independent.
Swing components are called “lightweight” because they do not require a native OS object to implement their functionality.
JDialog and JFrame are heavyweight, because they do have a peer..
What are the components of AWT in Java?
AWT ComponentsButton (java. awt. … Checkboxes (java. awt. … Radio Buttons (java. awt. … Choice Buttons (java. awt. … Labels (java. awt. … TextFields (java.awt.TextField) Are areas where the user can enter text. … An Example Component Application.
How do I run AWT program?
II. ApplicationsStart a MS-DOS command window. … Now, change to the directory of your choice from within the command window. … Create some Java source code with Notepad from within the command window. … The source code, Test.java, might look like this: … Double check the name of the Java program file you just saved.More items…
What are types of applets?
Types of AppletsTypes of Applets: Web pages can contain two types of applets which are named after the location at which they are stored.Local Applets: A local applet is the one that is stored on our own computer system. … Remote Applets: A remote applet is the one that is located on a remote computer system .
What are AWT controls?
AWT Controls are nothing but AWT Components that allows the user to communicate with the user in different ways. … It can also be said that interaction with the user will be done based on following three concepts: UI Elements. Layouts.
What is AWT package in Java?
awt package is the main package of the AWT, or Abstract Windowing Toolkit. … It contains classes for graphics, including the Java 2D graphics capabilities introduced in the Java 2 platform, and also defines the basic graphical user interface (GUI) framework for Java.