358359360361362363364365366367368
public void run() { myWindow.setWindowState(Window.WindowState.MAXIMIZED); } }); minimizeButton = new Button(new MinimizeIcon(BUTTON_SIZE), new Runnable() { public void run() { myWindow.setWindowState(Window.WindowState.MINIMIZED); } });