setSize method
Changes the size of the window so it has width width and height height.
setSize(width, height)
Parameters
int width
The new width of the window.
int height
The new height of the window.
Returns
void
这对您有帮助吗?