BoardNewDialog(JFrame frame, String[] hexList, int hexSelected) {
BoardNewDialog(JFrame frame) {
    BoardNewDialog(JFrame frame, String[] hexList, int hexSelected) {        super(frame, Messages.getString("BoardEditor.SetDimentions"), true); //$NON-NLS-1$        xvalue = 0;        yvalue = 0;        labWidth = new JLabel(Messages.getString("BoardEditor.labWidth"), JLabel.RIGHT); //$NON-NLS-1$        labHeight = new JLabel(Messages.getString("BoardEditor.labHeight"), JLabel.RIGHT); //$NON-NLS-1$        texWidth = new JTextField("16", 2); //$NON-NLS-1$        texHeight = new JTextField("17", 2); //$NON-NLS-1$        butOkay = new JButton(Messages.getString("Okay")); //$NON-NLS-1$        butOkay.setActionCommand("done"); //$NON-NLS-1$        butOkay.addActionListener(this);        butOkay.setSize(80, 24);        butCancel = new JButton(Messages.getString("Cancel")); //$NON-NLS-1$        butCancel.setActionCommand("cancel"); //$NON-NLS-1$        butCancel.addActionListener(this);        butCancel.setSize(80, 24);        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        setLayout(gridbag);        c.fill = GridBagConstraints.NONE;        c.weightx = 0.0;        c.weighty = 0.0;        c.insets = new Insets(5, 5, 1, 1);        gridbag.setConstraints(labWidth, c);        add(labWidth);        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(texWidth, c);        add(texWidth);        c.gridwidth = GridBagConstraints.RELATIVE;        gridbag.setConstraints(labHeight, c);        add(labHeight);        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(texHeight, c);        add(texHeight);        c.ipadx = 20;        c.ipady = 5;        c.gridwidth = GridBagConstraints.RELATIVE;        gridbag.setConstraints(butOkay, c);        add(butOkay);        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(butCancel, c);        add(butCancel);        pack();        setResizable(false);        setLocation(frame.getLocation().x + frame.getSize().width / 2 - getSize().width / 2,                frame.getLocation().y + frame.getSize().height / 2 - getSize().height / 2);    }