pnlSizeX.setLayout(new BorderLayout(0, 0));
lblSizeX = new JLabel("X: ");
pnlSizeX.add(lblSizeX, BorderLayout.WEST);
txtSizeX = new JFormattedTextField(nfSizeInt);
txtSizeX.setFont(arial);
txtSizeX.setText("1000");
pnlSizeX.add(txtSizeX, BorderLayout.EAST);
txtSizeX.setColumns(7);
final JPanel pnlSizeZ = new JPanel();
pnlSize.add(pnlSizeZ, BorderLayout.EAST);
pnlSizeZ.setLayout(new BorderLayout(0, 0));
lblSizeZ = new JLabel(" Z: ");
pnlSizeZ.add(lblSizeZ, BorderLayout.WEST);
txtSizeZ = new JFormattedTextField(nfSizeInt);
txtSizeZ.setFont(arial);
txtSizeZ.setText("1000");
txtSizeZ.setColumns(7);
pnlSizeZ.add(txtSizeZ, BorderLayout.EAST);
final JPanel pnlSizeXZ = new JPanel();
pnlSize.add(pnlSizeXZ, BorderLayout.NORTH);
pnlSizeXZ.setLayout(new BorderLayout(0, 0));
rdbtnSizeCustomSize = new JRadioButton("Custom Size:");
rdbtnSizeCustomSize.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
SizeSetEnable(true);
}
});
rdbtnSizeCustomSize.setSelected(true);
pnlSizeXZ.add(rdbtnSizeCustomSize, BorderLayout.CENTER);
final JPanel pnlSizeSquarify = new JPanel();
pnlSize.add(pnlSizeSquarify, BorderLayout.SOUTH);
pnlSizeSquarify.setLayout(new BorderLayout(0, 0));
rdbtnSizeSquarify = new JRadioButton("Squarify Existing Land");
rdbtnSizeSquarify.setToolTipText("Not Functional Yet...");
rdbtnSizeSquarify.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
SizeSetEnable(false);
CenterPointSetEnable(false);
}
});
pnlSizeSquarify.add(rdbtnSizeSquarify, BorderLayout.CENTER);
final JPanel pnlCenterPoint = new JPanel();
pnlCenterPoint.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createTitledBorder("Center Point:"),
BorderFactory.createEmptyBorder(5, 5, 5, 5)));
pnlOptions.add(pnlCenterPoint, BorderLayout.CENTER);
pnlCenterPoint.setLayout(new BorderLayout(0, 0));
final JPanel pnlCPrb = new JPanel();
pnlCenterPoint.add(pnlCPrb, BorderLayout.NORTH);
pnlCPrb.setLayout(new BorderLayout(0, 0));
rdbtnCenterSpawnPoint = new JRadioButton("Spawn Point");
rdbtnCenterSpawnPoint.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
CenterPointSetEnable(false);
}
});
rdbtnCenterSpawnPoint.setSelected(true);
pnlCPrb.add(rdbtnCenterSpawnPoint, BorderLayout.WEST);
rdbtnCenterOther = new JRadioButton("Other:");
rdbtnCenterOther.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
CenterPointSetEnable(true);
}
});
pnlCPrb.add(rdbtnCenterOther, BorderLayout.EAST);
final ButtonGroup bgCenterPoint = new ButtonGroup();
bgCenterPoint.add(rdbtnCenterSpawnPoint);
bgCenterPoint.add(rdbtnCenterOther);
final JPanel pnlCPSelection = new JPanel();
pnlCenterPoint.add(pnlCPSelection, BorderLayout.SOUTH);
pnlCPSelection.setLayout(new BorderLayout(0, 0));
final JPanel pnlCPx = new JPanel();
pnlCPSelection.add(pnlCPx, BorderLayout.WEST);
pnlCPx.setLayout(new BorderLayout(0, 0));
lblCPX = new JLabel("X: ");
lblCPX.setEnabled(false);
pnlCPx.add(lblCPX, BorderLayout.WEST);
txtCPX = new JFormattedTextField(nfCPInt);
txtCPX.setFont(arial);
txtCPX.setEnabled(false);
txtCPX.setText("0");
pnlCPx.add(txtCPX, BorderLayout.EAST);
txtCPX.setColumns(7);
final JPanel pnlCPz = new JPanel();
pnlCPSelection.add(pnlCPz, BorderLayout.EAST);
pnlCPz.setLayout(new BorderLayout(0, 0));
lblCPZ = new JLabel("Z: ");
lblCPZ.setEnabled(false);
pnlCPz.add(lblCPZ, BorderLayout.WEST);
txtCPZ = new JFormattedTextField(nfCPInt);
txtCPZ.setEnabled(false);
txtCPZ.setFont(arial);
txtCPZ.setText("0");
pnlCPz.add(txtCPZ, BorderLayout.EAST);
txtCPZ.setColumns(7);