There are three major components of class in Java.
Read moreWhat are the methods of components class in Java Swing?
Commonly used Methods of Component class MethodDescriptionpublic void add(Component c)add a component on another component.public void setSize(int width,int height)sets size of the component.public void setLayout(LayoutManager m)sets the layout manager for the component.Java Swing Tutorial – javatpoint www.javatpoint.com › java-swing
Read more