What are the different AWT controls?

What are the different AWT controls?

Different types of controls in AWT

  • Button.
  • Canvas.
  • Checkbox.
  • Choice.
  • Container.
  • Label.
  • List.
  • Scrollbar.

How many classes are there in AWT?

The AWT provides nine basic non-container component classes from which a user interface may be constructed. (Of course, new component classes may be derived from any of these or from class Component itself.) These nine classes are class Button, Canvas, Checkbox, Choice, Label, List, Scrollbar, TextArea, and TextField.

What are the classes of java AWT package?

Package java. awt

Class Description
Button This class creates a labeled button.
Canvas A Canvas component represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.
CardLayout A CardLayout object is a layout manager for a container.

What is AWT event class in java?

EventObject class It is the root class from which all event state objects shall be derived. All Events are constructed with a reference to the object, the source, that is logically deemed to be the object upon which the Event in question initially occurred upon. This class is defined in java.

What are the limitations of AWT in java?

Disadvantages

  • The buttons of AWT does not support pictures.
  • It is heavyweight in nature.
  • Two very important components trees and tables are not present.
  • Extensibility is not possible as it is platform dependent.

What are the components of AWT in Java?

AWT Components

  • Containers. Container in Java AWT is a component that is used to hold other components such as text fields, buttons, etc.
  • Button. java.awt.Button class is used to create a labeled button.
  • Text Field.
  • Label.
  • Canvas.
  • Choice.
  • Scroll Bar.
  • List.

What are the limitations of AWT in Java?

What are the different types of controls in AWT Mcq?

AWT supports the following types of controls: Labels, push buttons, check boxes, check box groups, lists, scroll bars, text fields etc.

What does the AWT stands for?

The Abstract Window Toolkit (AWT) supports Graphical User Interface (GUI) programming. AWT features include: A set of native user interface components. A robust event-handling model. Graphics and imaging tools, including shape, color, and font classes.

Why AWT is used in Java?

AWT stands for Abstract window toolkit is an Application programming interface (API) for creating Graphical User Interface (GUI) in Java. It allows Java programmers to develop window-based applications. AWT provides various components like button, label, checkbox, etc. used as objects inside a Java Program.

How many controls are there in AWT Mcq?

Answer is “7”