It contains a menu bar and title bar and can contain other components as well.ĥ. The panel does not contain a menubar or titlebar but can contain other components like textfield and buttons.Ĥ. It creates a space for an application where all the components can be fit in. public void setVisible(boolean status): defines the visibility of the component by default, it is false.ģ.public void setLayout(LayoutManager m): defines the layout manager for the component.public void setSize(int width, int height): sets the component’s width and height.public void adds (Component c): adds a component on this component.There are some basic components functions such as: Components: Components are the GUI objects such as buttons, label, textfield, checklist. Container: Container is a class that contains all the components such as button, textfield, titlebar, menubar, etc.Ģ. Some of the basic concepts regarding AWT hierarchy are as follows:ġ. Java AWT: AWT is an API for building GUI or window-based applications. Web development, programming languages, Software testing & others to the right for the left to rightīefore deep-diving into FlowLayout in Java details, let us revise some basic topics required for FlowLayout : TRAILING: It will be at the trailing edge of the container, i.e.to the left for the left to right orientation. LEADING: It will be at the leading edge of the container, i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |