Which method of the Component class is used to set the position and size of a component?

setBounds() method is used to set the position and size of a component