fd.show();
fd.setVisible(true);
    public void boardSaveAs() {        FileDialog fd = new FileDialog(frame, Messages.getString("BoardEditor.saveBoardAs"), FileDialog.SAVE); //$NON-NLS-1$        fd.setDirectory("data" + File.separator + "boards"); //$NON-NLS-1$ //$NON-NLS-2$        fd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100);        fd.show();                if(fd.getFile() == null) {            // I want a file, y'know!            return;        }        curpath = fd.getDirectory();        curfile = fd.getFile();        // make sure the file ends in board        if (!curfile.toLowerCase().endsWith(".board")) { //$NON-NLS-1$            curfile += ".board"; //$NON-NLS-1$        }                frame.setTitle(Messages.getString("BoardEditor.title0") + curfile); //$NON-NLS-1$                boardSave();    }