textFieldMirrorStartZ = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorStartZ, "8, 6");
textFieldMirrorStartZ.setColumns(8);
locationButtonsPanelMirrorStart = new LocationButtonsPanel(
textFieldMirrorStartX, textFieldMirrorStartY, textFieldMirrorStartZ,
null);
panelMirrorWaypoints.add(locationButtonsPanelMirrorStart, "10, 6");
//mid location
JLabel lblMirrorMidLocation = new JLabel("Mirror Middle Location");
panelMirrorWaypoints.add(lblMirrorMidLocation, "2, 8, right, default");
textFieldMirrorMidX = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorMidX, "4, 8");
textFieldMirrorMidX.setColumns(8);
textFieldMirrorMidY = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorMidY, "6, 8");
textFieldMirrorMidY.setColumns(8);
textFieldMirrorMidZ = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorMidZ, "8, 8");
textFieldMirrorMidZ.setColumns(8);
locationButtonsPanelMirrorMid = new LocationButtonsPanel(
textFieldMirrorMidX, textFieldMirrorMidY, textFieldMirrorMidZ, null);
panelMirrorWaypoints.add(locationButtonsPanelMirrorMid, "10, 8");
//end location
JLabel lblMirrorEndLocation = new JLabel("Mirror End Location");
panelMirrorWaypoints.add(lblMirrorEndLocation, "2, 10, right, default");
textFieldMirrorEndX = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorEndX, "4, 10");
textFieldMirrorEndX.setColumns(8);
textFieldMirrorEndY = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorEndY, "6, 10");
textFieldMirrorEndY.setColumns(8);
textFieldMirrorEndZ = new JTextField();
panelMirrorWaypoints.add(textFieldMirrorEndZ, "8, 10");
textFieldMirrorEndZ.setColumns(8);
locationButtonsPanelMirrorEnd = new LocationButtonsPanel(
textFieldMirrorEndX, textFieldMirrorEndY, textFieldMirrorEndZ, null);
panelMirrorWaypoints.add(locationButtonsPanelMirrorEnd, "10, 10");
// setup panel for Changer waypoints
panelChangerWaypoints = new JPanel();
// panelFields.add(panelChangerWaypoints);
panelChangerWaypoints.setBorder(new TitledBorder(null, "Changer Waypoints",
TitledBorder.LEADING, TitledBorder.TOP, null, null));
panelChangerWaypoints
.setLayout(new FormLayout(new ColumnSpec[] {
FormFactory.RELATED_GAP_COLSPEC,
FormFactory.DEFAULT_COLSPEC,
FormFactory.RELATED_GAP_COLSPEC,
FormFactory.DEFAULT_COLSPEC,
FormFactory.RELATED_GAP_COLSPEC,
FormFactory.DEFAULT_COLSPEC,
FormFactory.RELATED_GAP_COLSPEC,
FormFactory.DEFAULT_COLSPEC,
FormFactory.RELATED_GAP_COLSPEC,
ColumnSpec.decode("left:default:grow"), },
new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC, }));
JLabel lblchX = new JLabel("X");
panelChangerWaypoints.add(lblchX, "4, 4");
JLabel lblchY = new JLabel("Y");
panelChangerWaypoints.add(lblchY, "6, 4");
JLabel lblchZ = new JLabel("Z");
panelChangerWaypoints.add(lblchZ, "8, 4");
//start location
JLabel lblChangerStartLocation = new JLabel("Changer Start Location");
panelChangerWaypoints.add(lblChangerStartLocation, "2, 6, right, default");
textFieldChangerStartX = new JTextField();
panelChangerWaypoints.add(textFieldChangerStartX, "4, 6");
textFieldChangerStartX.setColumns(8);
textFieldChangerStartY = new JTextField();
panelChangerWaypoints.add(textFieldChangerStartY, "6, 6");
textFieldChangerStartY.setColumns(8);
textFieldChangerStartZ = new JTextField();
panelChangerWaypoints.add(textFieldChangerStartZ, "8, 6");
textFieldChangerStartZ.setColumns(8);
locationButtonsPanelChangerStart = new LocationButtonsPanel(
textFieldChangerStartX, textFieldChangerStartY, textFieldChangerStartZ,
null);
panelChangerWaypoints.add(locationButtonsPanelChangerStart, "10, 6");
//mid location
JLabel lblChangerMidLocation = new JLabel("Changer Middle Location");
panelChangerWaypoints.add(lblChangerMidLocation, "2, 8, right, default");
textFieldChangerMidX = new JTextField();
panelChangerWaypoints.add(textFieldChangerMidX, "4, 8");
textFieldChangerMidX.setColumns(8);
textFieldChangerMidY = new JTextField();
panelChangerWaypoints.add(textFieldChangerMidY, "6, 8");
textFieldChangerMidY.setColumns(8);
textFieldChangerMidZ = new JTextField();
panelChangerWaypoints.add(textFieldChangerMidZ, "8, 8");
textFieldChangerMidZ.setColumns(8);
locationButtonsPanelChangerMid = new LocationButtonsPanel(
textFieldChangerMidX, textFieldChangerMidY, textFieldChangerMidZ, null);
panelChangerWaypoints.add(locationButtonsPanelChangerMid, "10, 8");
//end location
JLabel lblChangerEndLocation = new JLabel("Changer End Location");
panelChangerWaypoints.add(lblChangerEndLocation, "2, 10, right, default");
textFieldChangerEndX = new JTextField();
panelChangerWaypoints.add(textFieldChangerEndX, "4, 10");
textFieldChangerEndX.setColumns(8);
textFieldChangerEndY = new JTextField();
panelChangerWaypoints.add(textFieldChangerEndY, "6, 10");
textFieldChangerEndY.setColumns(8);
textFieldChangerEndZ = new JTextField();
panelChangerWaypoints.add(textFieldChangerEndZ, "8, 10");
textFieldChangerEndZ.setColumns(8);
locationButtonsPanelChangerEnd = new LocationButtonsPanel(
textFieldChangerEndX, textFieldChangerEndY, textFieldChangerEndZ, null);
panelChangerWaypoints.add(locationButtonsPanelChangerEnd, "10, 10");
//vision panel
panelVision = new JPanel();