BoardNewDialog bnd = new BoardNewDialog(frame, lisTerrain.getItems(), lisTerrain.getSelectedIndex());
BoardNewDialog bnd = new BoardNewDialog(frame);
    public void boardNewXX() {        // display new board dialog        BoardNewDialog bnd = new BoardNewDialog(frame, lisTerrain.getItems(), lisTerrain.getSelectedIndex());        bnd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100);        bnd.setVisible(true);        if (bnd.getX() > 0 || bnd.getY() > 0) {            IHex[] newHexes = new IHex[bnd.getX() * bnd.getY()];            for (int i = 0; i < newHexes.length; i++) {                newHexes[i] = new Hex();            }            board.newData(bnd.getX(), bnd.getY(), newHexes);            curpath = null;            curfile = null;            frame.setTitle(Messages.getString("BoardEditor.title")); //$NON-NLS-1$            menuBar.setBoard(true);        }    }