A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Useful methods of component class:

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.













LEARN TUTORIALS

.

.