Package org.openpnp.gui.components

Examples of org.openpnp.gui.components.LocationButtonsPanel


        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();
View Full Code Here


        textFieldFeedStartZ = new JTextField();
        panelLocations.add(textFieldFeedStartZ, "8, 6");
        textFieldFeedStartZ.setColumns(8);

        locationButtonsPanelFeedStart = new LocationButtonsPanel(
                textFieldFeedStartX, textFieldFeedStartY, textFieldFeedStartZ,
                null);
        panelLocations.add(locationButtonsPanelFeedStart, "10, 6");

        JLabel lblFeedEndLocation = new JLabel("Feed End Location");
        panelLocations.add(lblFeedEndLocation, "2, 8, right, default");

        textFieldFeedEndX = new JTextField();
        panelLocations.add(textFieldFeedEndX, "4, 8");
        textFieldFeedEndX.setColumns(8);

        textFieldFeedEndY = new JTextField();
        panelLocations.add(textFieldFeedEndY, "6, 8");
        textFieldFeedEndY.setColumns(8);

        textFieldFeedEndZ = new JTextField();
        panelLocations.add(textFieldFeedEndZ, "8, 8");
        textFieldFeedEndZ.setColumns(8);

        locationButtonsPanelFeedEnd = new LocationButtonsPanel(
                textFieldFeedEndX, textFieldFeedEndY, textFieldFeedEndZ, null);
        panelLocations.add(locationButtonsPanelFeedEnd, "10, 8");
//
        panelVision = new JPanel();
        panelVision.setBorder(new TitledBorder(null, "Vision",
View Full Code Here

    textFieldLocationC = new JTextField();
    panelLocation.add(textFieldLocationC, "8, 4");
    textFieldLocationC.setColumns(8);
   
    locationButtonsPanel = new LocationButtonsPanel(textFieldLocationX, textFieldLocationY, textFieldLocationZ, textFieldLocationC);
    panelLocation.add(locationButtonsPanel, "10, 4");
  }
View Full Code Here

       
        textFieldChangerStartZ = new JTextField();
        panelChanger.add(textFieldChangerStartZ, "8, 4, fill, default");
        textFieldChangerStartZ.setColumns(5);
       
        changerStartLocationButtonsPanel = new LocationButtonsPanel(textFieldChangerStartX, textFieldChangerStartY, textFieldChangerStartZ, (JTextField) null);
        panelChanger.add(changerStartLocationButtonsPanel, "10, 4, fill, default");
       
        lblMiddleLocation = new JLabel("Middle Location");
        panelChanger.add(lblMiddleLocation, "2, 6, right, default");
       
        textFieldChangerMidX = new JTextField();
        panelChanger.add(textFieldChangerMidX, "4, 6, fill, default");
        textFieldChangerMidX.setColumns(5);
       
        textFieldChangerMidY = new JTextField();
        panelChanger.add(textFieldChangerMidY, "6, 6, fill, default");
        textFieldChangerMidY.setColumns(5);
       
        textFieldChangerMidZ = new JTextField();
        panelChanger.add(textFieldChangerMidZ, "8, 6, fill, default");
        textFieldChangerMidZ.setColumns(5);
       
        changerMidLocationButtonsPanel = new LocationButtonsPanel(textFieldChangerMidX, textFieldChangerMidY, textFieldChangerMidZ, (JTextField) null);
        panelChanger.add(changerMidLocationButtonsPanel, "10, 6, fill, default");
       
        lblEndLocation = new JLabel("End Location");
        panelChanger.add(lblEndLocation, "2, 8, right, default");
       
        textFieldChangerEndX = new JTextField();
        panelChanger.add(textFieldChangerEndX, "4, 8, fill, default");
        textFieldChangerEndX.setColumns(5);
       
        textFieldChangerEndY = new JTextField();
        panelChanger.add(textFieldChangerEndY, "6, 8, fill, default");
        textFieldChangerEndY.setColumns(5);
       
        textFieldChangerEndZ = new JTextField();
        panelChanger.add(textFieldChangerEndZ, "8, 8, fill, default");
        textFieldChangerEndZ.setColumns(5);
       
        changerEndLocationButtonsPanel = new LocationButtonsPanel(textFieldChangerEndX, textFieldChangerEndY, textFieldChangerEndZ, (JTextField) null);
        panelChanger.add(changerEndLocationButtonsPanel, "10, 8, fill, default");
    }
View Full Code Here

TOP

Related Classes of org.openpnp.gui.components.LocationButtonsPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.