Class Frame represents a top-level window with a title and a border.Ī border layout lays out a container, arranging and.Class Window represents a top-level window with no borders and no menubar.Ī Window object is an independent space on the screen which can not be.It does not have many methods, but it inherits It provides space in which an application can attach any other component, Class Panel is the simplest derived class of Container.The AWT package contains several layout managerĬlasses and an interface for building your own layout manager. A container can also have a layout manager that controls the visual placement.The methods in the parent class (i.e., the Component class). Paint(Graphics g) and a method update(), which override It has an overloaded methodĪdd(.) to add components into the container. That can contain components and other containers.Ĭomponents added to a container are tracked in a list. The abstract class Container represents components.The Component class has various methods to add listeners for The AWTEvent class and its subclasses are used to represent the events thatĪWT components can fire. Some components fire events when a user interacts with the components.Methods of this class include paint( Graphics g), update(). The abstract class Component is the root of all AWT components.Ī user interface object such as a button or a scrollbar is called, in AWT terminology,Ī component.A Graphics object encapsulates state information (e.g.,Ĭolor, font) needed for the basic rendering operations that Java supports. The abstract Graphics class is a base class for all graphics contexts. (abstract) Label,List,Scrollbar,TextComponentĬontains all of the classes for creating user interfaces and for painting Container Button,Canvas,Checkbox,Choice, Major Graphic User Interface (GUI) ObjectsĬlass Hierarchy in Package java.awt Abstract Window Toolkits (AWT) and Applet Abstract Window Toolkits (AWT) and Applet
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |