loadedList.select(bnd.getSelected()); curpath = null; curfile = null; frame.setTitle("MegaMek Editor : Unnamed");
lisTerrain.select(bnd.getSelected()); curpath = null; curfile = null; frame.setTitle("MegaMek Editor : Unnamed");
    public void boardNew() {        if(board.terrains.length == 0) {            // if there's no hexes loaded, give them a chance to load some...            loadTerrainFile();            if(board.terrains.length == 0) {                // if there's still no hexes, then cancel                return;            }            refreshTerrainList();        }        // display new board dialog        BoardNewDialog bnd = new BoardNewDialog(frame, loadedList.getItems(), loadedList.getSelectedIndex());        bnd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100);        bnd.show();                if(bnd.getX() > 0 || bnd.getY() > 0) {            board.newData(bnd.getX(), bnd.getY());            for(int i = 0; i < board.data.length; i++) {                board.data[i] = new Hex(board.terrains[bnd.getSelected()], 0);            }            loadedList.select(bnd.getSelected());      curpath = null;          curfile = null;      frame.setTitle("MegaMek Editor : Unnamed");        }    }