What are the component and container classes?

What are the component and container classes?

A component is a graphical object. A few examples of components are:

- Button
- Canvas
- Checkbox
- Choice
- Container
- Label
- List
- Scrollbar
- TextComponent

public class Container extends Component and is a component that can contain other AWT components.

A few examples are:

- BasicSplitPaneDivider
- Box
- CellRendererPane
- DefaultTreeCellEditor.EditorContainer
- JComponent
- Panel
- ScrollPane
- Window
Purpose of invalidate and validate methods
Purpose of invalidate and validate methods - The invalidate method is called as a side efftect of an addition or deleting some component...
What are AWT peers? When are peers created and destroyed?
What are AWT peers? - A Component is associated with a standard AWT button object, a peer object (hidden button object internal to the native GUI)...
Explain how to create a borderless window with an example
Explain how to create a borderless window public static void main(String[]args)....
Post your comment