return (null != dir.getName() && dir.getName().endsWith(".board"));
return null != dir.getName() && dir.getName().endsWith(".board");
    public void boardLoad() {        JFileChooser fc = new JFileChooser("data" + File.separator + "boards");        fc.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100);        fc.setDialogTitle(Messages.getString("BoardEditor.loadBoard"));        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.showOpenDialog(frame);        if (returnVal != JFileChooser.APPROVE_OPTION || fc.getSelectedFile() == null) {            // I want a file, y'know!            return;        }        curfile = fc.getSelectedFile();        // load!        try {            InputStream is = new FileInputStream(fc.getSelectedFile());            // tell the board to load!            board.load(is);            // okay, done!            is.close();            menuBar.setBoard(true);        } catch (IOException ex) {            System.err.println("error opening file to save!"); //$NON-NLS-1$            System.err.println(ex);        }        frame.setTitle(Messages.getString("BoardEditor.title0") + curfile); //$NON-NLS-1$        cheRoadsAutoExit.setSelected(board.getRoadsAutoExit());        refreshTerrainList();    }