![]() ![]() AWTEvent class is the highest-level class in the AWT event class hierarchy. There are various other functions also that you can use in creating the application.Explanation: The java. The programmers can add n number of components according to the need of its application. To resize the frame size setResizable(true) The functions used are: For size: setSize(int width, int height) While creating a frame always sets the size of the frame and its visibility. These are two ways from which you can create a frame in your GUI application. By creating an object of the frame class.Įxample by extending the Frame class import java.awt.* Įxample by creating an object of the Frame class import java.awt.*.Example of AWTįor developing a GUI application, the frame is a much-needed attribute. It has no existence without the combining instance of the Frame class. DIALOGĭialog class is also a subpart of the window. Most programmers use a frame for developing a window. It consists of other components for example button, choices, etc. It is a generally used attribute while developing an application in AWT. ![]() ![]() The frame consists of the menu bar, title bar, and border. FRAMEįrame class is a subpart of the window. The panel is used for holding other components such as Buttons, TextAreas, TextField. It does not contain menu bars and title bars. The panel is part of the container class. We can use frames, dialogs for creating a window. It does not contain any title or a border. The window is a part of the container class. Frame, Dialog, and applet are a container class. It keeps the track of the all the components that are added with other components. It contains all other components such as button, checkbox, choice. CONTAINERĪ container class is the subclass of the component. It is responsible for remembering all the current on-going functions such as foreground color, background color, font size, and font. It contains all the elements of the visual components. It provides different classes such as TextArea, TextField, CheckBox, etc. AWT components use operating system resources with common tools that run on every platform but it looks different on different platforms. AWT is used for creating Graphical User Interface (GUI). What is Java AWT? AWT (Abstract Window Toolkit):ĪWT refers to Abstract Window Toolkit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |