Which method of the Component class is used to set the position and size of a component? The methods are:
- setMaximumSize(Dimension maximumSize) Sets the maximum size of this component to a constant value. - setMinimumSize(Dimension minimumSize) Sets the minimum size of this component to a constant value. - setAlignmentX(float alignmentX) Sets the vertical alignment.
- setAlignmentY(float alignmentY) Sets the horizontal alignment.
|