import javax.swing.AbstractAction;
import javax.swing.Box;
import javax.swing.BoxLayout;
-import javax.swing.DefaultDesktopManager;
import javax.swing.DesktopManager;
import javax.swing.JButton;
import javax.swing.JCheckBox;
// This line prevents Windows Look&Feel resizing all new windows to maximum
// if previous window was maximised
desktop.setDesktopManager(
- new MyDesktopManager(new DefaultDesktopManager()));
+ new MyDesktopManager(desktop.getDesktopManager()));
Rectangle dims = getLastKnownDimensions("");
if (dims != null)