

SetBackground(Color c)/ Set the background color Void setBounds(int x,int y,int width,int height)/ Set upper case position (x,y Is the upper left coordinate ) New Frame(LayoutManager lay)/ Build a window that specifies the layout manager


New Frame(String name)/ Build a window ( The window name is name) (2)Panel: Its object can accommodate other Component object, But it can't exist independently, Must be added to other Container in (Window/Applet)ġ.Frame yes Window Subclasses of, from Frame Or its subclass creates an object as a form. (1)Window: The object is a top-level window that can be moored freely General Component Objects cannot be displayed independently, Must be at some point Container Object can be displayedģ.Container yes Component Subclass ,Container Subclasses can accommodate other Component objectĤ.Container Objects can be used add() Method to add another Component objectĥ.Container yes Component Subclass, therefore Container Objects can also be used as Component Add objects to other Container In the object Ģ.GUI The various elements of ( Such as window, Button, The text box ) from java Class implementationģ.Container and Component yes AWT Two core classes inĬomponent(java Any element that can be displayed in )īutton/TextArea/Label/TexteField/List Container( Containers )ġ.java The most basic component of the graphical interface is Component,Component Class and its subclasses are used to describe objects that are displayed graphically on the screen and can interact with users GUI Elements ( Button / label. 1.awt(Abstract Window Toolkit) Contains many classes and interfaces, be used for java Application Of GUI Programming.
