gbcon.fill = GridBagConstraints.HORIZONTAL;
for (int i = 0; i < (probeArmFields.length / 2); i++) {
gbcon.gridy = i + 1;
gbcon.gridx = 0;
armPanel.add(new JLabel(probeArmLabelStrings[i]), gbcon);
probeArmFields[i] = new IntegerTextField(999, 0);
gbcon.gridx = 1;
armPanel.add(probeArmFields[i], gbcon);
probeArmFields[i +
probeArmFields.length / 2] = new IntegerTextField(99, 0);
gbcon.gridx = 2;
if (i == probeArmFields.length / 2 - 1) {
gbcon.weighty = 1.0;
}
armPanel.add(probeArmFields[i + probeArmFields.length / 2], gbcon);
}
gbcon.weighty = 0.0;
//the type panel
typePanel.setLayout(new GridBagLayout());
typeProbeTargetSpinners = new JComboBox[typeBlockPropertyNames.length];
for (int spinnerno = 0; spinnerno < typeProbeTargetSpinners.length;
spinnerno++) {
gbcon.insets = new Insets(2, 20, 2, 2);
gbcon.gridy++;
if (spinnerno == typeProbeTargetSpinners.length - 1) {
gbcon.weighty = 1.0;
}
typePanel.add(new JLabel(typeLabelStrings[spinnerno]), gbcon);
gbcon.insets = new Insets(2, 2, 2, 2);
gbcon.gridx++;
typeProbeTargetSpinners[spinnerno] = new JComboBox(new
ComboBoxNumberModel(0, 0, GUIConstants.maxTagPositions, 1));
typePanel.add(typeProbeTargetSpinners[spinnerno], gbcon);
gbcon.gridx--;
gbcon.gridy++;
}
//the spacer panel
gbcon.gridx = 0;
gbcon.gridy = 0;
spacerFields = new JTextField[spacerPropertyNames.length];
spacerPanel.setLayout(new GridBagLayout());
spacerUseBox = new JCheckBox(spacerUseString);
spacerUseBox.addActionListener(this);
gbcon.gridwidth = 2;
spacerPanel.add(spacerUseBox, gbcon);
gbcon.gridwidth = 1;
spacerPosSpinner = new JComboBox(new ComboBoxNumberModel(0, 0,
GUIConstants.maxTagPositions, 1));
gbcon.gridy = 1;
spacerPanel.add(new JLabel(spacerPosString), gbcon);
gbcon.gridx = 1;
spacerPanel.add(spacerPosSpinner, gbcon);
//Spacerfields
for (int i = 0; i < spacerFields.length; i++) {
if (i == spacerFields.length - 1) {
gbcon.weighty = 1.0;
}
gbcon.gridy = i + 2;
gbcon.gridx = 0;
spacerPanel.add(new JLabel(spacerLabelStrings[i]), gbcon);
if (i == 0) {
spacerFields[i] = new IntegerTextField(999, 0);
}
else {
spacerFields[i] = new SequenceTextField(false);
}
gbcon.gridx = 1;