if (Settings.windowSizeHeight != 0) { frame.setLocation(Settings.windowPosX, Settings.windowPosY); frame.setSize(Settings.windowSizeWidth, Settings.windowSizeHeight); } else { frame.setSize(800, 600);
if (Settings.windowSizeHeight != 0) { frame.setLocation(Settings.windowPosX, Settings.windowPosY); frame.setSize(Settings.windowSizeWidth, Settings.windowSizeHeight); } else { frame.setSize(800, 600); }   frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { frame.setVisible(false); setMapVisible(false); } });
    private void setupFrame() {    frame.setTitle("MegaMek Board Editor : Unnamed");      frame.setLayout(new BorderLayout());      frame.add(bv, BorderLayout.CENTER);      frame.add(this, BorderLayout.EAST);          frame.setBackground(SystemColor.menu);    frame.setForeground(SystemColor.menuText);          // maybe we should have our own settings, instead of using the client's    if (Settings.windowSizeHeight != 0) {      frame.setLocation(Settings.windowPosX, Settings.windowPosY);      frame.setSize(Settings.windowSizeWidth, Settings.windowSizeHeight);    } else {      frame.setSize(800, 600);    }        // when frame is closing, just hide it    frame.addWindowListener(new WindowAdapter() {      public void windowClosing(WindowEvent e) {        frame.setVisible(false);        setMapVisible(false);      }    });    }