Useful methods of component class:
Method
|
Method description
|
Public void add(Component c)
|
This method inserts a component on this component
|
Public void setSize(int width, int height)
|
It sets the size (width and height) of the component.
|
Public void setLayout(LayoutManager m)
|
This method defines the layout manager for the component.
|
Public void setVisible(Boolean status)
|
This method changes the visibility of component. It provides by default false.
|