BoardNewDialog bnd = new BoardNewDialog(frame, lisTerrain.getItems(), lisTerrain.getSelectedIndex()); bnd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100); bnd.show();
RandomMapDialog rmd = new RandomMapDialog(frame, this, mapSettings); rmd.show();
    public void boardNew() {        // display new board dialog        BoardNewDialog bnd = new BoardNewDialog(frame, lisTerrain.getItems(), lisTerrain.getSelectedIndex());        bnd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100);        bnd.show();                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 );        }    }