What 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

Sizin İçin Seçtik  What are the components of a class in C++?

Leave a Reply

Your email address will not be published. Required fields are marked *

What 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

Sizin İçin Seçtik  What is Python mostly used for Reddit?

Leave a Reply

Your email address will not be published. Required fields are marked *