y = (y + height > tk.getScreenSize().height ? 0 : y);
frame.setBounds(x, y, width, height);
if (maximizedToken != null) {
boolean maximized = maximizedToken.booleanValue();
if (maximized) {
// FIXME: Regrettably, this doesn't make the window
// actually maximized under Windows, at least.
frame.setExtendedState(frame.getExtendedState()