public void windowClosing(java.awt.event.WindowEvent windowEvent) { if (windowEvent.getWindow() == minimapW) {
public void windowClosing(WindowEvent windowEvent) { if (windowEvent.getWindow().equals(minimapW)) {
    public void windowClosing(java.awt.event.WindowEvent windowEvent) {        if (windowEvent.getWindow() == minimapW) {            setMapVisible(false);        } else if (windowEvent.getWindow() == mechW) {            setDisplayVisible(false);        }    }