return (null != dir.getName() && dir.getName().endsWith(".board"));
return null != dir.getName() && dir.getName().endsWith(".board");
    private void boardSaveAs() {        JFileChooser fc = new JFileChooser("data" + File.separator + "boards");        fc.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100);        fc.setDialogTitle(Messages.getString("BoardEditor.saveBoardAs"));        fc.setFileFilter(new FileFilter() {            public boolean accept(File dir) {                return (null != dir.getName() && dir.getName().endsWith(".board")); //$NON-NLS-1$            }            public String getDescription() {                return ".board";            }        });        int returnVal = fc.showSaveDialog(frame);        if (returnVal != JFileChooser.APPROVE_OPTION || fc.getSelectedFile() == null) {            // I want a file, y'know!            return;        }        curfile = fc.getSelectedFile();        // make sure the file ends in board        if (!curfile.getName().toLowerCase().endsWith(".board")) { //$NON-NLS-1$            try {                curfile = new File(curfile.getCanonicalPath() + ".board"); //$NON-NLS-1$            } catch (IOException ie) {                //failure!                return;            }        }        frame.setTitle(Messages.getString("BoardEditor.title0") + curfile); //$NON-NLS-1$        boardSave();    }