bounds
The frame's position and size within the desktop, in pixels.
Reading returns a detached copy, matching java.awt.Component.getBounds semantics; move or resize the frame by assigning a new value here or by setting x, y, width and height individually.
A maximized frame stands on the whole desktop instead, and the geometry here is the one restoring it returns it to, so assigning while it is maximized moves and resizes where it lands.