List of usage examples for java.awt GridBagConstraints BOTH
int BOTH
To view the source code for java.awt GridBagConstraints BOTH.
Click Source Link
From source file:junk.gui.HazardSpectrumApplication.java
/** * Initialize the IMR Gui Bean// w w w . j a v a 2 s.com */ private void initIMR_GuiBean() { imrGuiBean = new IMR_GuiBean(this); imrGuiBean.getParameterEditor(imrGuiBean.IMR_PARAM_NAME).getParameter().addParameterChangeListener(this); // show this gui bean the JPanel imrPanel.add(this.imrGuiBean, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0)); //sets the Intensity measure for the IMR imrGuiBean.getSelectedIMR_Instance().setIntensityMeasure(this.SA_NAME); //initialise the SA Peroid values for the IMR this.getSA_PeriodForIMR(imrGuiBean.getSelectedIMR_Instance()); }
From source file:junk.gui.HazardSpectrumApplication.java
/** * Initialize the site gui bean/*from www .j av a 2 s. c om*/ */ private void initSiteGuiBean() { // get the selected IMR ScalarIntensityMeasureRelationshipAPI imr = imrGuiBean.getSelectedIMR_Instance(); // create the Site Gui Bean object siteGuiBean = new Site_GuiBean(); siteGuiBean.replaceSiteParams(imr.getSiteParamsIterator()); // show the sitebean in JPanel sitePanel.add(this.siteGuiBean, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0)); }
From source file:junk.gui.HazardSpectrumApplication.java
/** * Initialise the IMT_Prob Selector Gui Bean *//*from ww w .j a va 2 s . c o m*/ private void initImlProb_GuiBean() { imlProbGuiBean = new IMLorProbSelectorGuiBean(); this.imtPanel.add(imlProbGuiBean, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0)); }
From source file:ElectionGUI.java
private void generalPreferencesCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_generalPreferencesCheckBoxActionPerformed if (generalPreferencesCheckBox.isSelected()) { nTxtField.setEnabled(false);/*from w w w . j a v a 2s . c o m*/ mTxtField.setEnabled(false); xLimitTxtField.setEnabled(false); yLimitTxtField.setEnabled(false); nClusterTxtField.setEnabled(false); mClusterTxtField.setEnabled(false); createElectionBtn.setEnabled(false); saveElectionBtn.setEnabled(false); plotResultsBtn.setText("Calculate Results"); GridBagConstraints gbc = new java.awt.GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.gridwidth = 3; gbc.gridheight = 2; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(systemPanel, gbc); gbc = new java.awt.GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(plotAreaSNTV, gbc); gbc = new java.awt.GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 0; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(plotAreaBorda, gbc); gbc = new java.awt.GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 0; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(plotAreaBloc, gbc); } else { nTxtField.setEnabled(true); mTxtField.setEnabled(true); xLimitTxtField.setEnabled(true); yLimitTxtField.setEnabled(true); nClusterTxtField.setEnabled(true); mClusterTxtField.setEnabled(true); createElectionBtn.setEnabled(true); saveElectionBtn.setEnabled(true); plotResultsBtn.setText("Plot Results"); GridBagConstraints gbc = new java.awt.GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.gridwidth = 3; gbc.gridheight = 1; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(systemPanel, gbc); gbc = new java.awt.GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(plotAreaSNTV, gbc); gbc = new java.awt.GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(plotAreaBorda, gbc); gbc = new java.awt.GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.fill = java.awt.GridBagConstraints.BOTH; getContentPane().add(plotAreaBloc, gbc); } }
From source file:junk.gui.HazardSpectrumApplication.java
/** * Initialize the ERF Gui Bean// w w w. j a v a 2 s .com */ private void initERF_GuiBean() { // create the ERF Gui Bean object ArrayList erf_Classes = new ArrayList(); erf_Classes.add(FRANKEL2000_ADJ_FORECAST_CLASS_NAME); erf_Classes.add(FRANKEL_ADJ_FORECAST_CLASS_NAME); erf_Classes.add(STEP_FORECAST_CLASS_NAME); erf_Classes.add(WG02_ERF_LIST_CLASS_NAME); erf_Classes.add(STEP_ALASKA_ERF_CLASS_NAME); erf_Classes.add(POISSON_FAULT_ERF_CLASS_NAME); erf_Classes.add(PEER_AREA_FORECAST_CLASS_NAME); erf_Classes.add(PEER_NON_PLANAR_FAULT_FORECAST_CLASS_NAME); erf_Classes.add(PEER_MULTI_SOURCE_FORECAST_CLASS_NAME); erf_Classes.add(PEER_LOGIC_TREE_FORECAST_CLASS_NAME); try { if (erfGuiBean == null) erfGuiBean = new ERF_GuiBean(erf_Classes); } catch (InvocationTargetException e) { throw new RuntimeException("Connection to ERF's failed"); } erfPanel.setLayout(gridBagLayout5); erfPanel.removeAll(); erfPanel.add(erfGuiBean, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0)); erfPanel.validate(); erfPanel.repaint(); }
From source file:de.codesourcery.jasm16.ide.ui.views.SourceCodeView.java
private final JPanel createPanel() { disableDocumentListener(); // necessary because setting colors on editor pane triggers document change listeners (is considered a style change...) try {/*from w w w . j a v a 2s .com*/ editorPane.setEditable(editable); editorPane.getDocument().addUndoableEditListener(undoListener); editorPane.setCaretColor(Color.WHITE); setupKeyBindings(editorPane); setColors(editorPane); editorScrollPane = new JScrollPane(editorPane); setColors(editorScrollPane); editorPane.addCaretListener(listener); editorPane.addMouseListener(mouseListener); editorPane.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { if ((e.getModifiersEx() & MouseEvent.CTRL_DOWN_MASK) != 0) // ctrl pressed { final ASTNode node = getASTNodeForLocation(e.getPoint()); if (node instanceof SymbolReferenceNode) { maybeUnderlineIdentifierAt(e.getPoint()); } else { clearUnderlineHighlight(); } } else if (compilationUnit != null) { String tooltipText = null; if (compilationUnit != null) { final ASTNode node = getASTNodeForLocation(e.getPoint()); if (node instanceof InvokeMacroNode) { tooltipText = ExpandMacrosPhase.expandInvocation((InvokeMacroNode) node, compilationUnit); if (tooltipText != null) { tooltipText = "<html>" + tooltipText.replace("\n", "<br>") + "</html>"; } } } if (!StringUtils.equals(editorPane.getToolTipText(), tooltipText)) { editorPane.setToolTipText(tooltipText); } } } }); editorPane.addMouseListener(popupListener); } finally { enableDocumentListener(); } EditorContainer.addEditorCloseKeyListener(editorPane, this); editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); editorScrollPane.setPreferredSize(new Dimension(400, 600)); editorScrollPane.setMinimumSize(new Dimension(100, 100)); final AdjustmentListener adjustmentListener = new AdjustmentListener() { @Override public void adjustmentValueChanged(AdjustmentEvent e) { if (!e.getValueIsAdjusting()) { if (compilationUnit != null) { doHighlighting(compilationUnit, false); } } } }; editorScrollPane.getVerticalScrollBar().addAdjustmentListener(adjustmentListener); editorScrollPane.getHorizontalScrollBar().addAdjustmentListener(adjustmentListener); // button panel final JPanel topPanel = new JPanel(); final JToolBar toolbar = new JToolBar(); setColors(toolbar); cursorPosition.setSize(new Dimension(400, 15)); cursorPosition.setEditable(false); setColors(cursorPosition); /** * TOOLBAR * SOURCE * cursor position * status area */ topPanel.setLayout(new GridBagLayout()); GridBagConstraints cnstrs = constraints(0, 0, GridBagConstraints.HORIZONTAL); cnstrs.gridwidth = GridBagConstraints.REMAINDER; cnstrs.weighty = 0; topPanel.add(toolbar, cnstrs); cnstrs = constraints(0, 1, GridBagConstraints.BOTH); cnstrs.gridwidth = GridBagConstraints.REMAINDER; topPanel.add(editorScrollPane, cnstrs); cnstrs = constraints(0, 2, GridBagConstraints.HORIZONTAL); cnstrs.gridwidth = GridBagConstraints.REMAINDER; cnstrs.weighty = 0; topPanel.add(cursorPosition, cnstrs); cnstrs = constraints(0, 3, GridBagConstraints.HORIZONTAL); cnstrs.gridwidth = GridBagConstraints.REMAINDER; cnstrs.weighty = 0; // setup result panel final JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); setColors(panel); cnstrs = constraints(0, 0, true, true, GridBagConstraints.BOTH); panel.add(topPanel, cnstrs); return panel; }
From source file:junk.gui.HazardSpectrumApplication.java
/** * Initialize the ERF Rup Selector Gui Bean *///from w w w . ja v a2s. co m private void initERFSelector_GuiBean() { // create the ERF Gui Bean object ArrayList erf_Classes = new ArrayList(); erf_Classes.add(FRANKEL_ADJ_FORECAST_CLASS_NAME); erf_Classes.add(FRANKEL2000_ADJ_FORECAST_CLASS_NAME); erf_Classes.add(STEP_FORECAST_CLASS_NAME); erf_Classes.add(WG02_FORECAST_CLASS_NAME); erf_Classes.add(POISSON_FAULT_ERF_CLASS_NAME); erf_Classes.add(PEER_AREA_FORECAST_CLASS_NAME); erf_Classes.add(PEER_NON_PLANAR_FAULT_FORECAST_CLASS_NAME); erf_Classes.add(PEER_MULTI_SOURCE_FORECAST_CLASS_NAME); erf_Classes.add(PEER_LOGIC_TREE_FORECAST_CLASS_NAME); try { if (erfRupSelectorGuiBean == null) erfRupSelectorGuiBean = new EqkRupSelectorGuiBean(erf_Classes); } catch (InvocationTargetException e) { throw new RuntimeException("Connection to ERF's failed"); } erfPanel.removeAll(); //erfGuiBean = null; erfPanel.add(erfRupSelectorGuiBean, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0)); erfRupSelectorGuiBean.getParameter(ERF_GuiBean.ERF_PARAM_NAME).addParameterChangeListener(this); erfPanel.validate(); erfPanel.repaint(); }
From source file:statistic.ca.gui.JCAStatisticPanel.java
private JPanel addPropertiesComponents() { JPanel p = new JPanel(new GridBagLayout()); String[] statisticTypeNames = { "Grundinformationen", "Ausgangsverteilung", "Ankunftskurve", "evakuierte Individuen in Prozent", "maximale Blockadezeit", "durchschnittliche Blockadezeit", "minimale Blockadezeit", "zurckgelegte Distanz", "minimale Distanz zum initialen Ausgang", "minimale Distanz zum nchsten Ausgang", "Distanz ber Zeit", "maximale Zeit bis Safe", "durchschnittliche Zeit bis Safe", "minimale Zeit bis Safe", "maximale Geschwindigkeit ber Zeit", "durschnittliche Geschwindigkeit ber Zeit", "maximale Geschwindigkeit", "durchschnittliche Geschwindigkeit", "Panik ber Zeit", "Erschpfung ber Zeit" }; statisticType = new JComboBox(statisticTypeNames); statisticType.addActionListener(new TypePerformed()); JPanel timeIntervalGroup = new JPanel(); timeInterval = new JLabel("Zeitintervall:"); timeIntervalFrom = new JTextField(4); timeIntervalTo = new JTextField(4); timeIntervalGroup.add(timeInterval); timeIntervalGroup.add(timeIntervalFrom); timeIntervalGroup.add(new JLabel(" - ")); timeIntervalGroup.add(timeIntervalTo); assignmentListModel = new DefaultListModel(); assignmentList = new JList(assignmentListModel); // data has type Object[] assignmentList.getSelectionModel().addListSelectionListener(new AssignmentTypeListSelect()); assignmentList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); assignmentList.setLayoutOrientation(JList.VERTICAL); assignmentList.setVisibleRowCount(-1); JScrollPane listScroller = new JScrollPane(assignmentList); listScroller.setPreferredSize(new Dimension(100, 50)); JPanel assignmentButtons = new JPanel(); JButton btn_group = new JButton("Group"); JButton btn_ungroup = new JButton("Ungroup"); btn_group.addActionListener(new GroupPreformed()); btn_ungroup.addActionListener(new UngroupPreformed()); assignmentButtons.add(btn_group);/* www .j a v a 2 s .c o m*/ assignmentButtons.add(btn_ungroup); JButton btn_createDiagram = new JButton("Create Diagram"); btn_createDiagram.addActionListener(new CreateDiagramPerformed()); JButton btn_removeDiagram = new JButton("Remove Diagram"); btn_removeDiagram.addActionListener(new RemovePerformed()); JPanel diagramButtonGroup = new JPanel(); diagramButtonGroup.add(btn_createDiagram); diagramButtonGroup.add(btn_removeDiagram); diagramCategoryListModel = new DefaultListModel(); diagramCategoryList = new JList(diagramCategoryListModel); // data has type // Object[] diagramCategoryList.getSelectionModel().addListSelectionListener(new DiagramCategoryListSelect()); diagramCategoryList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); diagramCategoryList.setLayoutOrientation(JList.VERTICAL); diagramCategoryList.setVisibleRowCount(-1); JScrollPane diagramCategoryListScroller = new JScrollPane(diagramCategoryList); diagramCategoryListScroller.setPreferredSize(new Dimension(100, 50)); JPanel buttonGroup = new JPanel(); JButton btn_addToDiagram = new JButton("Add to Diagram"); JButton btn_removeFromDiagram = new JButton("Remove from Diagram"); buttonGroup.add(btn_addToDiagram); buttonGroup.add(btn_removeFromDiagram); btn_addToDiagram.addActionListener(new AddToDiagramPerformed()); btn_removeFromDiagram.addActionListener(new RemoveFromDiagramPerformed()); // Create statisticSource at last because we need the GUI Objects above to initialize // our selection in BatchResultEntryComboBoxModel.setSelectedItem () model = new BatchResultEntryComboBoxModel(); statisticSource = new JComboBox(model); int y = 0; p.add(statisticType, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(statisticSource, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JSeparator(SwingConstants.HORIZONTAL), new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); p.add(new JLabel("Belegungen"), new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(listScroller, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); p.add(assignmentButtons, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JSeparator(SwingConstants.HORIZONTAL), new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); p.add(buttonGroup, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JSeparator(SwingConstants.HORIZONTAL), new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); p.add(diagramCategoryListScroller, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); p.add(diagramButtonGroup, new GridBagConstraints(0, y++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); return p; }
From source file:com.cch.aj.entryrecorder.frame.MainJFrame.java
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor.//from w ww. j a va 2s .c o m */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); cbEntry = new javax.swing.JComboBox(); btnDone = new javax.swing.JButton(); btnRefresh = new javax.swing.JButton(); btnReport = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jPanel15 = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); txtProductCode = new javax.swing.JLabel(); txtProductColor = new javax.swing.JLabel(); txtProductWeight = new javax.swing.JLabel(); txtProductPierced = new javax.swing.JLabel(); txtProductDesc = new javax.swing.JLabel(); txtProductBung = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel38 = new javax.swing.JLabel(); txtProductGrade = new javax.swing.JLabel(); pnlMouldImage = new javax.swing.JPanel(); labProductImage = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); jPanel16 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tblWeight = new javax.swing.JTable(); jPanel14 = new javax.swing.JPanel(); jLabel21 = new javax.swing.JLabel(); txtWeightStaff = new javax.swing.JTextField(); labWeightStaff = new javax.swing.JLabel(); btnWeight = new javax.swing.JButton(); txtWeight = new javax.swing.JTextField(); pnlChartWeight = new javax.swing.JPanel(); jPanel37 = new javax.swing.JPanel(); jPanel38 = new javax.swing.JPanel(); jScrollPane10 = new javax.swing.JScrollPane(); tblCycle = new javax.swing.JTable(); jPanel39 = new javax.swing.JPanel(); jLabel44 = new javax.swing.JLabel(); labBungStaff1 = new javax.swing.JLabel(); btnCycle = new javax.swing.JButton(); txtCycle = new javax.swing.JTextField(); txtCycleStaff = new javax.swing.JTextField(); jPanel17 = new javax.swing.JPanel(); jPanel18 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tblWall = new javax.swing.JTable(); jPanel19 = new javax.swing.JPanel(); jLabel22 = new javax.swing.JLabel(); txtWallStaff = new javax.swing.JTextField(); labWallStaff = new javax.swing.JLabel(); btnWall = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); txtWallUnderHandle = new javax.swing.JTextField(); txtWallBase = new javax.swing.JTextField(); txtWallClosure = new javax.swing.JTextField(); txtWallHandleBung = new javax.swing.JTextField(); txtWallHandleLeft = new javax.swing.JTextField(); txtWallHandleRight = new javax.swing.JTextField(); pnlWallImage = new javax.swing.JPanel(); jLabel37 = new javax.swing.JLabel(); jPanel6 = new javax.swing.JPanel(); jPanel20 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); tblTap = new javax.swing.JTable(); jPanel21 = new javax.swing.JPanel(); jLabel23 = new javax.swing.JLabel(); labTapStaff = new javax.swing.JLabel(); btnTap = new javax.swing.JButton(); cbTap = new javax.swing.JComboBox(); txtTapStaff = new javax.swing.JTextField(); pnlTapImage = new javax.swing.JPanel(); jLabel36 = new javax.swing.JLabel(); pnlChartTap = new javax.swing.JPanel(); jPanel7 = new javax.swing.JPanel(); jPanel31 = new javax.swing.JPanel(); jScrollPane7 = new javax.swing.JScrollPane(); tblBung = new javax.swing.JTable(); jPanel32 = new javax.swing.JPanel(); jLabel39 = new javax.swing.JLabel(); labBungStaff = new javax.swing.JLabel(); btnBung = new javax.swing.JButton(); cbBung = new javax.swing.JComboBox(); txtBungStaff = new javax.swing.JTextField(); jPanel22 = new javax.swing.JPanel(); jPanel23 = new javax.swing.JPanel(); jScrollPane4 = new javax.swing.JScrollPane(); tblBore = new javax.swing.JTable(); jPanel24 = new javax.swing.JPanel(); labBoreStaff = new javax.swing.JLabel(); btnBore = new javax.swing.JButton(); jLabel10 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); txtBore1 = new javax.swing.JTextField(); txtBore2 = new javax.swing.JTextField(); txtBoreStaff = new javax.swing.JTextField(); txtNeck = new javax.swing.JTextField(); pnlBoreImage1 = new javax.swing.JPanel(); jLabel35 = new javax.swing.JLabel(); pnlBoreImage2 = new javax.swing.JPanel(); labBoreImage2 = new javax.swing.JLabel(); pnlNeckImage = new javax.swing.JPanel(); labNeckImage = new javax.swing.JLabel(); jLabel82 = new javax.swing.JLabel(); txtBore11 = new javax.swing.JTextField(); txtBore21 = new javax.swing.JTextField(); jLabel83 = new javax.swing.JLabel(); jLabel84 = new javax.swing.JLabel(); txtNeck1 = new javax.swing.JTextField(); labBoreStaff1 = new javax.swing.JLabel(); txtBoreStaff1 = new javax.swing.JTextField(); btnBore1 = new javax.swing.JButton(); jPanel25 = new javax.swing.JPanel(); jPanel26 = new javax.swing.JPanel(); jScrollPane5 = new javax.swing.JScrollPane(); tblCheck = new javax.swing.JTable(); jPanel27 = new javax.swing.JPanel(); jLabel24 = new javax.swing.JLabel(); labCheckStaff = new javax.swing.JLabel(); btnCheck = new javax.swing.JButton(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); cbNeckRound = new javax.swing.JComboBox(); cbNeckComplete = new javax.swing.JComboBox(); cbUnderTheHandle = new javax.swing.JComboBox(); cbBungIfDrilled = new javax.swing.JComboBox(); cbBase = new javax.swing.JComboBox(); cbStrengthOfDrum = new javax.swing.JComboBox(); cbWeightWithinRange = new javax.swing.JComboBox(); cbColourTexture = new javax.swing.JComboBox(); txtCheckStaff = new javax.swing.JTextField(); jLabel52 = new javax.swing.JLabel(); cbBungProvision = new javax.swing.JComboBox(); jPanel28 = new javax.swing.JPanel(); jPanel29 = new javax.swing.JPanel(); jScrollPane6 = new javax.swing.JScrollPane(); tblDrop = new javax.swing.JTable(); jPanel30 = new javax.swing.JPanel(); jLabel27 = new javax.swing.JLabel(); labDropStaff = new javax.swing.JLabel(); btnDrop = new javax.swing.JButton(); jLabel28 = new javax.swing.JLabel(); jLabel29 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jLabel32 = new javax.swing.JLabel(); jLabel33 = new javax.swing.JLabel(); jLabel34 = new javax.swing.JLabel(); cbDrop1 = new javax.swing.JComboBox(); cbDrop2 = new javax.swing.JComboBox(); cbDrop3 = new javax.swing.JComboBox(); cbDrop4 = new javax.swing.JComboBox(); cbDrop5 = new javax.swing.JComboBox(); cbDrop6 = new javax.swing.JComboBox(); cbDrop7 = new javax.swing.JComboBox(); cbDrop8 = new javax.swing.JComboBox(); txtDropStaff = new javax.swing.JTextField(); jPanel13 = new javax.swing.JPanel(); jLabel49 = new javax.swing.JLabel(); jLabel76 = new javax.swing.JLabel(); txtPalletQuantity = new javax.swing.JTextField(); txtPalletProducedA = new javax.swing.JTextField(); jLabel77 = new javax.swing.JLabel(); jLabel78 = new javax.swing.JLabel(); jLabel79 = new javax.swing.JLabel(); txtOtherQuantity = new javax.swing.JTextField(); jLabel80 = new javax.swing.JLabel(); txtPalletProducedB = new javax.swing.JTextField(); jLabel81 = new javax.swing.JLabel(); labQuantityTotal = new javax.swing.JLabel(); btnQuantity = new javax.swing.JButton(); jPanel8 = new javax.swing.JPanel(); jPanel9 = new javax.swing.JPanel(); jPanel33 = new javax.swing.JPanel(); jScrollPane8 = new javax.swing.JScrollPane(); tblRejects = new javax.swing.JTable(); jPanel34 = new javax.swing.JPanel(); jLabel40 = new javax.swing.JLabel(); btnRejects = new javax.swing.JButton(); txtRejects = new javax.swing.JTextField(); jPanel10 = new javax.swing.JPanel(); jLabel42 = new javax.swing.JLabel(); labRejectsTotal = new javax.swing.JLabel(); jPanel11 = new javax.swing.JPanel(); jPanel35 = new javax.swing.JPanel(); jScrollPane9 = new javax.swing.JScrollPane(); tblSeconds = new javax.swing.JTable(); jPanel36 = new javax.swing.JPanel(); jLabel41 = new javax.swing.JLabel(); btnSeconds = new javax.swing.JButton(); txtSeconds = new javax.swing.JTextField(); jPanel12 = new javax.swing.JPanel(); jLabel43 = new javax.swing.JLabel(); labSecondsTotal = new javax.swing.JLabel(); jPanel40 = new javax.swing.JPanel(); jPanel41 = new javax.swing.JPanel(); jScrollPane11 = new javax.swing.JScrollPane(); tblLeak = new javax.swing.JTable(); jPanel42 = new javax.swing.JPanel(); jLabel45 = new javax.swing.JLabel(); jLabel46 = new javax.swing.JLabel(); txtLeakFill = new javax.swing.JTextField(); btnLeakFill = new javax.swing.JButton(); jLabel47 = new javax.swing.JLabel(); jLabel48 = new javax.swing.JLabel(); labLeakTime = new javax.swing.JLabel(); jLabel50 = new javax.swing.JLabel(); txtLeakCheck = new javax.swing.JTextField(); jLabel51 = new javax.swing.JLabel(); cbLeak = new javax.swing.JComboBox(); btnLeakCheck = new javax.swing.JButton(); labLeakNotes = new javax.swing.JLabel(); jScrollPane12 = new javax.swing.JScrollPane(); txtLeakNotes = new javax.swing.JTextArea(); pnlProductTab = new javax.swing.JPanel(); pnlEditProduct = new javax.swing.JPanel(); jLabel62 = new javax.swing.JLabel(); cbProductPolymer = new javax.swing.JComboBox(); jLabel63 = new javax.swing.JLabel(); jLabel67 = new javax.swing.JLabel(); jLabel68 = new javax.swing.JLabel(); jLabel69 = new javax.swing.JLabel(); jLabel70 = new javax.swing.JLabel(); jLabel71 = new javax.swing.JLabel(); jLabel72 = new javax.swing.JLabel(); cbProductAdditive1 = new javax.swing.JComboBox(); txtAdditiveABatchA = new javax.swing.JTextField(); cbProductAdditive2 = new javax.swing.JComboBox(); txtAdditiveBBatchA = new javax.swing.JTextField(); cbProductAdditive3 = new javax.swing.JComboBox(); txtAdditiveCBatchA = new javax.swing.JTextField(); jLabel64 = new javax.swing.JLabel(); jLabel65 = new javax.swing.JLabel(); jLabel66 = new javax.swing.JLabel(); jLabel73 = new javax.swing.JLabel(); jLabel74 = new javax.swing.JLabel(); jLabel75 = new javax.swing.JLabel(); txtPolymerBatchA = new javax.swing.JTextField(); txtPolymerBatchB = new javax.swing.JTextField(); txtAdditiveABatchB = new javax.swing.JTextField(); txtAdditiveBBatchB = new javax.swing.JTextField(); txtAdditiveCBatchB = new javax.swing.JTextField(); btnMaterialSave = new javax.swing.JButton(); jScrollPane13 = new javax.swing.JScrollPane(); tblMaterial = new javax.swing.JTable(); jPanel43 = new javax.swing.JPanel(); jLabel53 = new javax.swing.JLabel(); jLabel54 = new javax.swing.JLabel(); jLabel55 = new javax.swing.JLabel(); jLabel56 = new javax.swing.JLabel(); jLabel57 = new javax.swing.JLabel(); jLabel58 = new javax.swing.JLabel(); jLabel59 = new javax.swing.JLabel(); jLabel60 = new javax.swing.JLabel(); jLabel61 = new javax.swing.JLabel(); cbSupervisor1 = new javax.swing.JComboBox(); cbSupervisor2 = new javax.swing.JComboBox(); cbSupervisor3 = new javax.swing.JComboBox(); cbTechnician1 = new javax.swing.JComboBox(); cbTechnician2 = new javax.swing.JComboBox(); cbTechnician3 = new javax.swing.JComboBox(); cbWorker1 = new javax.swing.JComboBox(); cbWorker2 = new javax.swing.JComboBox(); cbWorker3 = new javax.swing.JComboBox(); btnStaffSave = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); labShift = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setPreferredSize(new java.awt.Dimension(1150, 600)); getContentPane().setLayout(new java.awt.GridBagLayout()); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Machine No")); jPanel1.setLayout(new java.awt.GridBagLayout()); cbEntry.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbEntryActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel1.add(cbEntry, gridBagConstraints); btnDone.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tickbox_alt.png"))); // NOI18N btnDone.setToolTipText("Complete?"); btnDone.setMaximumSize(new java.awt.Dimension(24, 24)); btnDone.setMinimumSize(new java.awt.Dimension(24, 24)); btnDone.setPreferredSize(new java.awt.Dimension(24, 24)); btnDone.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnDoneActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.insets = new java.awt.Insets(5, 2, 5, 2); jPanel1.add(btnDone, gridBagConstraints); btnRefresh.setIcon(new javax.swing.ImageIcon(getClass().getResource("/repeat.png"))); // NOI18N btnRefresh.setToolTipText("Refresh"); btnRefresh.setMaximumSize(new java.awt.Dimension(24, 24)); btnRefresh.setMinimumSize(new java.awt.Dimension(24, 24)); btnRefresh.setPreferredSize(new java.awt.Dimension(24, 24)); btnRefresh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRefreshActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.insets = new java.awt.Insets(5, 2, 5, 2); jPanel1.add(btnRefresh, gridBagConstraints); btnReport.setIcon(new javax.swing.ImageIcon(getClass().getResource("/printer.png"))); // NOI18N btnReport.setToolTipText("Report"); btnReport.setMaximumSize(new java.awt.Dimension(24, 24)); btnReport.setMinimumSize(new java.awt.Dimension(24, 24)); btnReport.setPreferredSize(new java.awt.Dimension(24, 24)); btnReport.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnReportActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.insets = new java.awt.Insets(5, 2, 5, 2); jPanel1.add(btnReport, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; getContentPane().add(jPanel1, gridBagConstraints); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Product Information")); jPanel2.setLayout(new java.awt.GridBagLayout()); jPanel15.setLayout(new java.awt.GridBagLayout()); jLabel5.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel5.setText("CODE:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel5, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductCode, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductColor, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductWeight, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 13; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductPierced, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductDesc, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 11; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductBung, gridBagConstraints); jLabel11.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel11.setText("COLOUR"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel11, gridBagConstraints); jLabel7.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel7.setText("DESCRIPTION??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel7, gridBagConstraints); jLabel13.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel13.setText("BUNG?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel13, gridBagConstraints); jLabel9.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel9.setText("WEIGHT RANGE??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel9, gridBagConstraints); jLabel15.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel15.setText("PIERCED"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 12; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel15, gridBagConstraints); jLabel38.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel38.setText("GRADE"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(jLabel38, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 1, 2, 1); jPanel15.add(txtProductGrade, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridheight = 12; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel2.add(jPanel15, gridBagConstraints); pnlMouldImage.setLayout(new java.awt.GridBagLayout()); labProductImage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/no_photo.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START; pnlMouldImage.add(labProductImage, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; jPanel2.add(pnlMouldImage, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 1.0; getContentPane().add(jPanel2, gridBagConstraints); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Recorder")); jPanel3.setLayout(new java.awt.GridBagLayout()); jTabbedPane1.setPreferredSize(new java.awt.Dimension(1224, 426)); jPanel5.setLayout(new java.awt.GridBagLayout()); jPanel16.setLayout(new java.awt.GridBagLayout()); tblWeight.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Value", "Pass", "Staff" })); jScrollPane1.setViewportView(tblWeight); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel16.add(jScrollPane1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel5.add(jPanel16, gridBagConstraints); jPanel14.setLayout(new java.awt.GridBagLayout()); jLabel21.setText("Product Weight (grams)??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel14.add(jLabel21, gridBagConstraints); txtWeightStaff.setToolTipText(""); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel14.add(txtWeightStaff, gridBagConstraints); labWeightStaff.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(4, 28, 4, 28); jPanel14.add(labWeightStaff, gridBagConstraints); btnWeight.setText("Add"); btnWeight.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnWeightActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.insets = new java.awt.Insets(9, 0, 5, 0); jPanel14.add(btnWeight, gridBagConstraints); txtWeight.setToolTipText(""); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel14.add(txtWeight, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel5.add(jPanel14, gridBagConstraints); pnlChartWeight.setPreferredSize(new java.awt.Dimension(400, 400)); pnlChartWeight.setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel5.add(pnlChartWeight, gridBagConstraints); jTabbedPane1.addTab("Weight??", jPanel5); jPanel37.setLayout(new java.awt.GridBagLayout()); jPanel38.setLayout(new java.awt.GridBagLayout()); tblCycle.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Value", "Staff" })); jScrollPane10.setViewportView(tblCycle); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel38.add(jScrollPane10, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel37.add(jPanel38, gridBagConstraints); jPanel39.setLayout(new java.awt.GridBagLayout()); jLabel44.setText("Cycle Time"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel39.add(jLabel44, gridBagConstraints); labBungStaff1.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel39.add(labBungStaff1, gridBagConstraints); btnCycle.setText("Add"); btnCycle.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCycleActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel39.add(btnCycle, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel39.add(txtCycle, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel39.add(txtCycleStaff, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel37.add(jPanel39, gridBagConstraints); jTabbedPane1.addTab("Cycle Time", jPanel37); jPanel17.setLayout(new java.awt.GridBagLayout()); jPanel18.setLayout(new java.awt.GridBagLayout()); tblWall.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Name", "Value", "Pass", "Staff" })); jScrollPane2.setViewportView(tblWall); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel18.add(jScrollPane2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel17.add(jPanel18, gridBagConstraints); jPanel19.setLayout(new java.awt.GridBagLayout()); jLabel22.setText("END OF HANDLE SIDE-RIGHT?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(jLabel22, gridBagConstraints); txtWallStaff.setToolTipText(""); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallStaff, gridBagConstraints); labWallStaff.setText("Record By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(labWallStaff, gridBagConstraints); btnWall.setText("Add"); btnWall.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnWallActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(btnWall, gridBagConstraints); jLabel2.setText("UNDER THE HANDLE"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(jLabel2, gridBagConstraints); jLabel3.setText("BASE (CENTRE)"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(jLabel3, gridBagConstraints); jLabel4.setText("CLOSURE SIDE??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(jLabel4, gridBagConstraints); jLabel6.setText("END OF HANDLE SIDE-BUNG??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(jLabel6, gridBagConstraints); jLabel8.setText("END OF HANDLE SIDE-LEFT"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(jLabel8, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallUnderHandle, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallBase, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallClosure, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallHandleBung, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallHandleLeft, gridBagConstraints); txtWallHandleRight.setToolTipText(""); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtWallHandleRight, gridBagConstraints); pnlWallImage.setLayout(new java.awt.GridBagLayout()); jLabel37.setIcon(new javax.swing.ImageIcon(getClass().getResource("/no_photo_small.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); pnlWallImage.add(jLabel37, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.weightx = 1.0; jPanel19.add(pnlWallImage, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel17.add(jPanel19, gridBagConstraints); jTabbedPane1.addTab("Wall Thickness?", jPanel17); jPanel6.setLayout(new java.awt.GridBagLayout()); jPanel20.setLayout(new java.awt.GridBagLayout()); tblTap.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Value", "Pass", "Staff" })); jScrollPane3.setViewportView(tblTap); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel20.add(jScrollPane3, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel6.add(jPanel20, gridBagConstraints); jPanel21.setLayout(new java.awt.GridBagLayout()); jLabel23.setText("Tap"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel21.add(jLabel23, gridBagConstraints); labTapStaff.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel21.add(labTapStaff, gridBagConstraints); btnTap.setText("Add"); btnTap.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnTapActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel21.add(btnTap, gridBagConstraints); cbTap.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "1:00", "2:00", "3:00", "4:00", "5:00", "6:00", "7:00", "8:00", "9;00", "10:00", "11:00", "12:00" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel21.add(cbTap, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel21.add(txtTapStaff, gridBagConstraints); pnlTapImage.setLayout(new java.awt.GridBagLayout()); jLabel36.setIcon(new javax.swing.ImageIcon(getClass().getResource("/no_photo_small.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); pnlTapImage.add(jLabel36, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.weightx = 1.0; jPanel21.add(pnlTapImage, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel6.add(jPanel21, gridBagConstraints); pnlChartTap.setPreferredSize(new java.awt.Dimension(400, 400)); pnlChartTap.setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel6.add(pnlChartTap, gridBagConstraints); jTabbedPane1.addTab("Tap Position?", jPanel6); jPanel7.setLayout(new java.awt.GridBagLayout()); jPanel31.setLayout(new java.awt.GridBagLayout()); tblBung.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Value", "Pass", "Staff" })); jScrollPane7.setViewportView(tblBung); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel31.add(jScrollPane7, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel7.add(jPanel31, gridBagConstraints); jPanel32.setLayout(new java.awt.GridBagLayout()); jLabel39.setText("Bung?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel32.add(jLabel39, gridBagConstraints); labBungStaff.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel32.add(labBungStaff, gridBagConstraints); btnBung.setText("Add"); btnBung.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnBungActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel32.add(btnBung, gridBagConstraints); cbBung.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Weak", "Good", "Strong" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel32.add(cbBung, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.insets = new java.awt.Insets(9, 27, 9, 27); jPanel32.add(txtBungStaff, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel7.add(jPanel32, gridBagConstraints); jTabbedPane1.addTab("Bung?", jPanel7); jPanel22.setLayout(new java.awt.GridBagLayout()); jPanel23.setLayout(new java.awt.GridBagLayout()); tblBore.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Name", "Value", "Pass", "Staff" })); jScrollPane4.setViewportView(tblBore); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel23.add(jScrollPane4, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel22.add(jPanel23, gridBagConstraints); jPanel24.setLayout(new java.awt.GridBagLayout()); labBoreStaff.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(labBoreStaff, gridBagConstraints); btnBore.setText("Add"); btnBore.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnBoreActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 27, 3, 27); jPanel24.add(btnBore, gridBagConstraints); jLabel10.setText("1.BORE DIAMETRE 11"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(jLabel10, gridBagConstraints); jLabel12.setText("1.BORE DIAMETRE 22"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(jLabel12, gridBagConstraints); jLabel14.setText("1.NECK HEIGHT"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(jLabel14, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; jPanel24.add(txtBore1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; jPanel24.add(txtBore2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; jPanel24.add(txtBoreStaff, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; jPanel24.add(txtNeck, gridBagConstraints); pnlBoreImage1.setLayout(new java.awt.GridBagLayout()); jLabel35.setIcon(new javax.swing.ImageIcon(getClass().getResource("/b1.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); pnlBoreImage1.add(jLabel35, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel24.add(pnlBoreImage1, gridBagConstraints); pnlBoreImage2.setLayout(new java.awt.GridBagLayout()); labBoreImage2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/b2.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); pnlBoreImage2.add(labBoreImage2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel24.add(pnlBoreImage2, gridBagConstraints); pnlNeckImage.setLayout(new java.awt.GridBagLayout()); labNeckImage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/b3.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10); pnlNeckImage.add(labNeckImage, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel24.add(pnlNeckImage, gridBagConstraints); jLabel82.setText("2.BORE DIAMETRE 11"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(jLabel82, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10); jPanel24.add(txtBore11, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10); jPanel24.add(txtBore21, gridBagConstraints); jLabel83.setText("2.BORE DIAMETRE 22"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(jLabel83, gridBagConstraints); jLabel84.setText("2.NECK HEIGHT"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(jLabel84, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10); jPanel24.add(txtNeck1, gridBagConstraints); labBoreStaff1.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(0, 15, 0, 0); jPanel24.add(labBoreStaff1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10); jPanel24.add(txtBoreStaff1, gridBagConstraints); btnBore1.setText("Add"); btnBore1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnBore1ActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 27, 3, 27); jPanel24.add(btnBore1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel22.add(jPanel24, gridBagConstraints); jTabbedPane1.addTab("Bore / Neck", jPanel22); jPanel25.setLayout(new java.awt.GridBagLayout()); jPanel26.setLayout(new java.awt.GridBagLayout()); tblCheck.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Name", "Value", "Pass", "Staff" })); jScrollPane5.setViewportView(tblCheck); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel26.add(jScrollPane5, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel25.add(jPanel26, gridBagConstraints); jPanel27.setLayout(new java.awt.GridBagLayout()); jLabel24.setText("STRENGTH OF DRUM"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel24, gridBagConstraints); labCheckStaff.setText("Check By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(labCheckStaff, gridBagConstraints); btnCheck.setText("Add"); btnCheck.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCheckActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(btnCheck, gridBagConstraints); jLabel16.setText("NECK ROUND?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel16, gridBagConstraints); jLabel17.setText("NECK COMPLETE??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel17, gridBagConstraints); jLabel18.setText("UNDER THE HANDLE"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel18, gridBagConstraints); jLabel19.setText("BUNG, IF DRILLED?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel19, gridBagConstraints); jLabel20.setText("BASE"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel20, gridBagConstraints); jLabel25.setText("WEIGHT WITHIN RANGE???"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel25, gridBagConstraints); jLabel26.setText("COLOUR / TEXTURE??"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel26, gridBagConstraints); cbNeckRound.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbNeckRound, gridBagConstraints); cbNeckComplete .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbNeckComplete, gridBagConstraints); cbUnderTheHandle .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbUnderTheHandle, gridBagConstraints); cbBungIfDrilled .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbBungIfDrilled, gridBagConstraints); cbBase.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbBase, gridBagConstraints); cbStrengthOfDrum .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbStrengthOfDrum, gridBagConstraints); cbWeightWithinRange .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Yes", "No" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbWeightWithinRange, gridBagConstraints); cbColourTexture .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbColourTexture, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(txtCheckStaff, gridBagConstraints); jLabel52.setText("BUNG PROVISION(BUBBLES/HOLES))?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(jLabel52, gridBagConstraints); cbBungProvision .setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Checked", "NA" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel27.add(cbBungProvision, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel25.add(jPanel27, gridBagConstraints); jTabbedPane1.addTab("Quality Check", jPanel25); jPanel28.setLayout(new java.awt.GridBagLayout()); jPanel29.setLayout(new java.awt.GridBagLayout()); tblDrop.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Name", "Value", "Pass", "Staff" })); jScrollPane6.setViewportView(tblDrop); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel29.add(jScrollPane6, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel28.add(jPanel29, gridBagConstraints); jPanel30.setLayout(new java.awt.GridBagLayout()); jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p6.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel27, gridBagConstraints); labDropStaff.setText("Test By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(10, 29, 5, 29); jPanel30.add(labDropStaff, gridBagConstraints); btnDrop.setText("Add"); btnDrop.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnDropActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(btnDrop, gridBagConstraints); jLabel28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p1.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel28, gridBagConstraints); jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p2.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel29, gridBagConstraints); jLabel30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p3.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel30, gridBagConstraints); jLabel31.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p4.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel31, gridBagConstraints); jLabel32.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p5.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel32, gridBagConstraints); jLabel33.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p7.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel33, gridBagConstraints); jLabel34.setIcon(new javax.swing.ImageIcon(getClass().getResource("/p8.png"))); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(jLabel34, gridBagConstraints); cbDrop1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop1, gridBagConstraints); cbDrop2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop2, gridBagConstraints); cbDrop3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop3, gridBagConstraints); cbDrop4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop4, gridBagConstraints); cbDrop5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop5, gridBagConstraints); cbDrop6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop6, gridBagConstraints); cbDrop7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop7, gridBagConstraints); cbDrop8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "Pass", "Fail" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(3, 29, 3, 29); jPanel30.add(cbDrop8, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(10, 29, 5, 29); jPanel30.add(txtDropStaff, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; jPanel28.add(jPanel30, gridBagConstraints); jTabbedPane1.addTab("Drop Test", jPanel28); jPanel13.setLayout(new java.awt.GridBagLayout()); jLabel49.setText("Pallet Quantity"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel49, gridBagConstraints); jLabel76.setText("Pallets Produced"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel76, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(txtPalletQuantity, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(txtPalletProducedA, gridBagConstraints); jLabel77.setText("X"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel77, gridBagConstraints); jLabel78.setText("Other Quantity"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel78, gridBagConstraints); jLabel79.setText("Pallets Produced"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel79, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(txtOtherQuantity, gridBagConstraints); jLabel80.setText("X"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel80, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(txtPalletProducedB, gridBagConstraints); jLabel81.setText("Total Produced"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(jLabel81, gridBagConstraints); labQuantityTotal.setText("total"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.weightx = 0.3; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(labQuantityTotal, gridBagConstraints); btnQuantity.setText("Save"); btnQuantity.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnQuantityActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 3; gridBagConstraints.ipadx = 9; gridBagConstraints.ipady = 9; gridBagConstraints.insets = new java.awt.Insets(7, 22, 7, 22); jPanel13.add(btnQuantity, gridBagConstraints); jTabbedPane1.addTab("Quantity Produced?", jPanel13); jPanel8.setLayout(new java.awt.GridBagLayout()); jPanel9.setLayout(new java.awt.GridBagLayout()); jPanel33.setLayout(new java.awt.GridBagLayout()); tblRejects.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Value" })); jScrollPane8.setViewportView(tblRejects); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel33.add(jScrollPane8, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel9.add(jPanel33, gridBagConstraints); jPanel34.setLayout(new java.awt.GridBagLayout()); jLabel40.setText("Rejects?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel34.add(jLabel40, gridBagConstraints); btnRejects.setText("Add"); btnRejects.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRejectsActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 2; gridBagConstraints.ipady = 2; gridBagConstraints.insets = new java.awt.Insets(11, 11, 11, 11); jPanel34.add(btnRejects, gridBagConstraints); txtRejects.setToolTipText(""); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel34.add(txtRejects, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel9.add(jPanel34, gridBagConstraints); jPanel10.setLayout(new java.awt.GridBagLayout()); jLabel42.setText("Rejects Total : "); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(8, 8, 8, 8); jPanel10.add(jLabel42, gridBagConstraints); labRejectsTotal.setText("NA"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel10.add(labRejectsTotal, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel9.add(jPanel10, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.5; jPanel8.add(jPanel9, gridBagConstraints); jPanel11.setLayout(new java.awt.GridBagLayout()); jPanel35.setLayout(new java.awt.GridBagLayout()); tblSeconds.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Value" })); jScrollPane9.setViewportView(tblSeconds); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel35.add(jScrollPane9, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.7; jPanel11.add(jPanel35, gridBagConstraints); jPanel36.setLayout(new java.awt.GridBagLayout()); jLabel41.setText("Seconds"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel36.add(jLabel41, gridBagConstraints); btnSeconds.setText("Add"); btnSeconds.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSecondsActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 2; gridBagConstraints.ipady = 2; gridBagConstraints.insets = new java.awt.Insets(11, 11, 11, 11); jPanel36.add(btnSeconds, gridBagConstraints); txtSeconds.setToolTipText(""); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.ipady = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(21, 28, 4, 28); jPanel36.add(txtSeconds, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.3; jPanel11.add(jPanel36, gridBagConstraints); jPanel12.setLayout(new java.awt.GridBagLayout()); jLabel43.setText("Seconds Total : "); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(8, 8, 8, 8); jPanel12.add(jLabel43, gridBagConstraints); labSecondsTotal.setText("NA"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel12.add(labSecondsTotal, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; jPanel11.add(jPanel12, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.5; jPanel8.add(jPanel11, gridBagConstraints); jTabbedPane1.addTab("Seconds / Rejects?", jPanel8); jPanel40.setLayout(new java.awt.GridBagLayout()); jPanel41.setLayout(new java.awt.GridBagLayout()); tblLeak.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Name", "Value" })); jScrollPane11.setViewportView(tblLeak); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel41.add(jScrollPane11, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.5; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(26, 3, 26, 3); jPanel40.add(jPanel41, gridBagConstraints); jPanel42.setLayout(new java.awt.GridBagLayout()); jLabel45.setText("Stage 1 Testing"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(jLabel45, gridBagConstraints); jLabel46.setText("Water filled by"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(jLabel46, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(txtLeakFill, gridBagConstraints); btnLeakFill.setText("Add"); btnLeakFill.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnLeakFillActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(btnLeakFill, gridBagConstraints); jLabel47.setText("Stage 2 Examination"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(9, 13, 3, 13); jPanel42.add(jLabel47, gridBagConstraints); jLabel48.setText("Time filled"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(jLabel48, gridBagConstraints); labLeakTime.setText("time"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(labLeakTime, gridBagConstraints); jLabel50.setText("Checked By"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(jLabel50, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(txtLeakCheck, gridBagConstraints); jLabel51.setText("Any Leaks?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(jLabel51, gridBagConstraints); cbLeak.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- Select -", "YES", "NO" })); cbLeak.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbLeakActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(cbLeak, gridBagConstraints); btnLeakCheck.setText("Add"); btnLeakCheck.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnLeakCheckActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(btnLeakCheck, gridBagConstraints); labLeakNotes.setText("Notes"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(labLeakNotes, gridBagConstraints); txtLeakNotes.setColumns(20); txtLeakNotes.setRows(5); txtLeakNotes.setMinimumSize(new java.awt.Dimension(150, 100)); txtLeakNotes.setPreferredSize(new java.awt.Dimension(160, 100)); jScrollPane12.setViewportView(txtLeakNotes); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.ipadx = 3; gridBagConstraints.ipady = 3; gridBagConstraints.weightx = 0.5; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 13, 3, 13); jPanel42.add(jScrollPane12, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.5; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(26, 3, 26, 3); jPanel40.add(jPanel42, gridBagConstraints); jTabbedPane1.addTab("Leak Test?", jPanel40); pnlProductTab.setLayout(new java.awt.GridBagLayout()); pnlEditProduct.setLayout(new java.awt.GridBagLayout()); jLabel62.setText("POLYMER"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel62, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(cbProductPolymer, gridBagConstraints); jLabel63.setText("ADDITIVE(?,UV,)"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel63, gridBagConstraints); jLabel67.setText("TYPE 11"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel67, gridBagConstraints); jLabel68.setText("Batch Number 1?1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel68, gridBagConstraints); jLabel69.setText("TYPE 2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel69, gridBagConstraints); jLabel70.setText("Batch Number 1?1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel70, gridBagConstraints); jLabel71.setText("TYPE 3"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel71, gridBagConstraints); jLabel72.setText("Batch Number 1?1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 33, 2, 29); pnlEditProduct.add(jLabel72, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(cbProductAdditive1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtAdditiveABatchA, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(cbProductAdditive2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtAdditiveBBatchA, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(cbProductAdditive3, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtAdditiveCBatchA, gridBagConstraints); jLabel64.setText("Batch Number 2?2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(jLabel64, gridBagConstraints); jLabel65.setText("Polymer Type"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(jLabel65, gridBagConstraints); jLabel66.setText("Batch Number 1?1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(jLabel66, gridBagConstraints); jLabel73.setText("Batch Number 2?2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(jLabel73, gridBagConstraints); jLabel74.setText("Batch Number 2?2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(jLabel74, gridBagConstraints); jLabel75.setText("Batch Number 2?2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(jLabel75, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtPolymerBatchA, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtPolymerBatchB, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtAdditiveABatchB, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtAdditiveBBatchB, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 6; gridBagConstraints.ipady = 6; gridBagConstraints.weightx = 0.25; gridBagConstraints.insets = new java.awt.Insets(2, 29, 2, 29); pnlEditProduct.add(txtAdditiveCBatchB, gridBagConstraints); btnMaterialSave.setText("Save"); btnMaterialSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnMaterialSaveActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(13, 13, 13, 13); pnlEditProduct.add(btnMaterialSave, gridBagConstraints); tblMaterial.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "Time", "Type", "Batch Number" })); jScrollPane13.setViewportView(tblMaterial); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.5; gridBagConstraints.weighty = 1.0; pnlEditProduct.add(jScrollPane13, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; pnlProductTab.add(pnlEditProduct, gridBagConstraints); jTabbedPane1.addTab("Raw Material", pnlProductTab); jPanel43.setLayout(new java.awt.GridBagLayout()); jLabel53.setText("SUPERVISOR 1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel53, gridBagConstraints); jLabel54.setText("SUPERVISOR 2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel54, gridBagConstraints); jLabel55.setText("SUPERVISOR 3"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel55, gridBagConstraints); jLabel56.setText("TECHNICIAN 1"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel56, gridBagConstraints); jLabel57.setText("TECHNICIAN 2"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel57, gridBagConstraints); jLabel58.setText("TECHNICIAN 3"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel58, gridBagConstraints); jLabel59.setText("MACHINE OPERATOR 1?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel59, gridBagConstraints); jLabel60.setText("MACHINE OPERATOR 2?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel60, gridBagConstraints); jLabel61.setText("MACHINE OPERATOR 3?"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(jLabel61, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbSupervisor1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbSupervisor2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbSupervisor3, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbTechnician1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbTechnician2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbTechnician3, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbWorker1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbWorker2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 5; gridBagConstraints.weightx = 0.5; gridBagConstraints.insets = new java.awt.Insets(2, 20, 2, 20); jPanel43.add(cbWorker3, gridBagConstraints); btnStaffSave.setText("Save"); btnStaffSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStaffSaveActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 2; gridBagConstraints.insets = new java.awt.Insets(11, 11, 11, 11); jPanel43.add(btnStaffSave, gridBagConstraints); jTabbedPane1.addTab("Staff", jPanel43); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.ipadx = 95; gridBagConstraints.ipady = 95; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel3.add(jTabbedPane1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(jPanel3, gridBagConstraints); jPanel4.setLayout(new java.awt.GridBagLayout()); jLabel1.setFont(new java.awt.Font("Dialog", 3, 24)); // NOI18N jLabel1.setText("A & J Entry Recorder"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(8, 8, 8, 8); jPanel4.add(jLabel1, gridBagConstraints); labShift.setText("shift"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; jPanel4.add(labShift, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(jPanel4, gridBagConstraints); pack(); }
From source file:erigo.ctstream.CTstream.java
/** * Pop up the GUI//from ww w . j a v a2 s.c om * * This method should be run in the event-dispatching thread. * * The GUI is created in one of two modes depending on whether Shaped * windows are supported on the platform: * * 1. If Shaped windows are supported then guiPanel (the container to * which all other components are added) is RED and capturePanel is * inset a small amount to this panel so that the RED border is seen * around the outer edge. A componentResized() method is defined * which creates the hollowed out region that was capturePanel. * 2. If Shaped windows are not supported then guiPanel is transparent * and capturePanel is translucent. In this case, the user can't * "reach through" capturePanel to interact with GUIs on the other * side. * * @param bShapedWindowSupportedI Does the underlying GraphicsDevice support the * PERPIXEL_TRANSPARENT translucency that is * required for Shaped windows? */ private void createAndShowGUI(boolean bShapedWindowSupportedI) { // No window decorations for translucent/transparent windows // (see note below) // JFrame.setDefaultLookAndFeelDecorated(true); // // Create GUI components // GridBagLayout framegbl = new GridBagLayout(); guiFrame = new JFrame("CTstream"); // To support a translucent window, the window must be undecorated // See notes in the class header up above about this; also see // http://alvinalexander.com/source-code/java/how-create-transparenttranslucent-java-jframe-mac-os-x guiFrame.setUndecorated(true); // Use MouseMotionListener to implement our own simple "window manager" for moving and resizing the window guiFrame.addMouseMotionListener(this); guiFrame.setBackground(new Color(0, 0, 0, 0)); guiFrame.getContentPane().setBackground(new Color(0, 0, 0, 0)); GridBagLayout gbl = new GridBagLayout(); guiPanel = new JPanel(gbl); // if Shaped windows are supported, make guiPanel red; // otherwise make it transparent if (bShapedWindowSupportedI) { guiPanel.setBackground(Color.RED); } else { guiPanel.setBackground(new Color(0, 0, 0, 0)); } guiFrame.setFont(new Font("Dialog", Font.PLAIN, 12)); guiPanel.setFont(new Font("Dialog", Font.PLAIN, 12)); GridBagLayout controlsgbl = new GridBagLayout(); // *** controlsPanel contains the UI controls at the top of guiFrame controlsPanel = new JPanel(controlsgbl); controlsPanel.setBackground(new Color(211, 211, 211, 255)); startStopButton = new JButton("Start"); startStopButton.addActionListener(this); startStopButton.setBackground(Color.GREEN); continueButton = new JButton("Continue"); continueButton.addActionListener(this); continueButton.setEnabled(false); screencapCheck = new JCheckBox("screen", bScreencap); screencapCheck.setBackground(controlsPanel.getBackground()); screencapCheck.addActionListener(this); webcamCheck = new JCheckBox("camera", bWebcam); webcamCheck.setBackground(controlsPanel.getBackground()); webcamCheck.addActionListener(this); audioCheck = new JCheckBox("audio", bAudio); audioCheck.setBackground(controlsPanel.getBackground()); audioCheck.addActionListener(this); textCheck = new JCheckBox("text", bText); textCheck.setBackground(controlsPanel.getBackground()); textCheck.addActionListener(this); JLabel fpsLabel = new JLabel("images/sec", SwingConstants.LEFT); fpsCB = new JComboBox<Double>(FPS_VALUES); int tempIndex = Arrays.asList(FPS_VALUES).indexOf(new Double(framesPerSec)); fpsCB.setSelectedIndex(tempIndex); fpsCB.addActionListener(this); // The popup doesn't display over the transparent region; // therefore, just display a few rows to keep it within controlsPanel fpsCB.setMaximumRowCount(3); JLabel imgQualLabel = new JLabel("image qual", SwingConstants.LEFT); // The slider will use range 0 - 1000 imgQualSlider = new JSlider(JSlider.HORIZONTAL, 0, 1000, (int) (imageQuality * 1000.0)); // NOTE: The JSlider's initial width was too large, so I'd like to set its preferred size // to try and constrain it some; also need to set its minimum size at the same time, // or else when the user makes the GUI frame smaller, the JSlider would pop down to // a really small minimum size. imgQualSlider.setPreferredSize(new Dimension(120, 30)); imgQualSlider.setMinimumSize(new Dimension(120, 30)); imgQualSlider.setBackground(controlsPanel.getBackground()); includeMouseCursorCheck = new JCheckBox("Include mouse cursor in screen capture", bIncludeMouseCursor); includeMouseCursorCheck.setBackground(controlsPanel.getBackground()); includeMouseCursorCheck.addActionListener(this); changeDetectCheck = new JCheckBox("Change detect", bChangeDetect); changeDetectCheck.setBackground(controlsPanel.getBackground()); changeDetectCheck.addActionListener(this); fullScreenCheck = new JCheckBox("Full Screen", bFullScreen); fullScreenCheck.setBackground(controlsPanel.getBackground()); fullScreenCheck.addActionListener(this); previewCheck = new JCheckBox("Preview", bPreview); previewCheck.setBackground(controlsPanel.getBackground()); previewCheck.addActionListener(this); // Specify a small size for the text area, so that we can shrink down the UI w/o the scrollbars popping up textArea = new JTextArea(3, 10); // Add a Document listener to the JTextArea; this is how we will listen for changes to the document docChangeListener = new DocumentChangeListener(this); textArea.getDocument().addDocumentListener(docChangeListener); textScrollPane = new JScrollPane(textArea); // *** capturePanel capturePanel = new JPanel(); if (!bShapedWindowSupportedI) { // Only make capturePanel translucent (ie, semi-transparent) if we aren't doing the Shaped window option capturePanel.setBackground(new Color(0, 0, 0, 16)); } else { capturePanel.setBackground(new Color(0, 0, 0, 0)); } capturePanel.setPreferredSize(new Dimension(500, 400)); boolean bMacOS = false; String OS = System.getProperty("os.name", "generic").toLowerCase(); if ((OS.indexOf("mac") >= 0) || (OS.indexOf("darwin") >= 0)) { bMacOS = true; } // Only have the CTstream UI stay on top of all other windows // if bStayOnTop is true (set by command line flag). This is needed // for the Mac, because on that platform the user can't "reach through" // the capture frame to windows behind it. if (bStayOnTop) { guiFrame.setAlwaysOnTop(true); } // // Add components to the GUI // int row = 0; GridBagConstraints gbc = new GridBagConstraints(); gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.NONE; gbc.weightx = 0; gbc.weighty = 0; // // First row: the controls panel // // Add some extra horizontal padding around controlsPanel so the panel has some extra room // if we are running in web camera mode. gbc.insets = new Insets(0, 0, 0, 0); gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weightx = 100; gbc.weighty = 0; Utility.add(guiPanel, controlsPanel, gbl, gbc, 0, row, 1, 1); gbc.insets = new Insets(0, 0, 0, 0); gbc.fill = GridBagConstraints.NONE; gbc.weightx = 0; gbc.weighty = 0; ++row; // Add controls to the controls panel int panelrow = 0; // (i) Start/Continue buttons GridBagLayout panelgbl = new GridBagLayout(); JPanel subPanel = new JPanel(panelgbl); GridBagConstraints panelgbc = new GridBagConstraints(); panelgbc.anchor = GridBagConstraints.WEST; panelgbc.fill = GridBagConstraints.NONE; panelgbc.weightx = 0; panelgbc.weighty = 0; subPanel.setBackground(controlsPanel.getBackground()); panelgbc.insets = new Insets(0, 0, 0, 5); Utility.add(subPanel, startStopButton, panelgbl, panelgbc, 0, 0, 1, 1); panelgbc.insets = new Insets(0, 0, 0, 0); Utility.add(subPanel, continueButton, panelgbl, panelgbc, 1, 0, 1, 1); gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.NONE; gbc.insets = new Insets(5, 0, 0, 0); Utility.add(controlsPanel, subPanel, controlsgbl, gbc, 0, panelrow, 1, 1); ++panelrow; gbc.anchor = GridBagConstraints.WEST; gbc.fill = GridBagConstraints.NONE; // (ii) select DataStreams to turn on panelgbl = new GridBagLayout(); subPanel = new JPanel(panelgbl); panelgbc = new GridBagConstraints(); panelgbc.anchor = GridBagConstraints.WEST; panelgbc.fill = GridBagConstraints.NONE; panelgbc.weightx = 0; panelgbc.weighty = 0; subPanel.setBackground(controlsPanel.getBackground()); panelgbc.insets = new Insets(0, 0, 0, 0); Utility.add(subPanel, screencapCheck, panelgbl, panelgbc, 0, 0, 1, 1); Utility.add(subPanel, webcamCheck, panelgbl, panelgbc, 1, 0, 1, 1); Utility.add(subPanel, audioCheck, panelgbl, panelgbc, 2, 0, 1, 1); Utility.add(subPanel, textCheck, panelgbl, panelgbc, 3, 0, 1, 1); gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.NONE; gbc.insets = new Insets(0, 0, 0, 0); Utility.add(controlsPanel, subPanel, controlsgbl, gbc, 0, panelrow, 1, 1); ++panelrow; // (iii) images/sec control panelgbl = new GridBagLayout(); subPanel = new JPanel(panelgbl); panelgbc = new GridBagConstraints(); panelgbc.anchor = GridBagConstraints.WEST; panelgbc.fill = GridBagConstraints.NONE; panelgbc.weightx = 0; panelgbc.weighty = 0; subPanel.setBackground(controlsPanel.getBackground()); panelgbc.insets = new Insets(2, 0, 0, 0); Utility.add(subPanel, fpsLabel, panelgbl, panelgbc, 0, 0, 1, 1); panelgbc.insets = new Insets(2, 10, 0, 10); Utility.add(subPanel, fpsCB, panelgbl, panelgbc, 1, 0, 1, 1); gbc.insets = new Insets(0, 0, 0, 0); gbc.anchor = GridBagConstraints.CENTER; Utility.add(controlsPanel, subPanel, controlsgbl, gbc, 0, panelrow, 1, 1); ++panelrow; // (iv) image quality slider panelgbl = new GridBagLayout(); subPanel = new JPanel(panelgbl); panelgbc = new GridBagConstraints(); panelgbc.anchor = GridBagConstraints.WEST; panelgbc.fill = GridBagConstraints.NONE; panelgbc.weightx = 0; panelgbc.weighty = 0; subPanel.setBackground(controlsPanel.getBackground()); JLabel sliderLabelLow = new JLabel("Low", SwingConstants.LEFT); JLabel sliderLabelHigh = new JLabel("High", SwingConstants.LEFT); panelgbc.insets = new Insets(-5, 0, 0, 0); Utility.add(subPanel, imgQualLabel, panelgbl, panelgbc, 0, 0, 1, 1); panelgbc.insets = new Insets(-5, 5, 0, 5); Utility.add(subPanel, sliderLabelLow, panelgbl, panelgbc, 1, 0, 1, 1); panelgbc.insets = new Insets(0, 0, 0, 0); Utility.add(subPanel, imgQualSlider, panelgbl, panelgbc, 2, 0, 1, 1); panelgbc.insets = new Insets(-5, 5, 0, 0); Utility.add(subPanel, sliderLabelHigh, panelgbl, panelgbc, 3, 0, 1, 1); gbc.insets = new Insets(0, 0, 0, 0); gbc.anchor = GridBagConstraints.CENTER; Utility.add(controlsPanel, subPanel, controlsgbl, gbc, 0, panelrow, 1, 1); ++panelrow; // (v) Include mouse cursor in screen capture image? gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.NONE; gbc.weightx = 0; gbc.weighty = 0; gbc.insets = new Insets(0, 15, 5, 15); Utility.add(controlsPanel, includeMouseCursorCheck, controlsgbl, gbc, 0, panelrow, 1, 1); gbc.fill = GridBagConstraints.NONE; gbc.weightx = 0; gbc.weighty = 0; ++panelrow; // (vi) Change detect / Full screen / Preview checkboxes panelgbl = new GridBagLayout(); subPanel = new JPanel(panelgbl); panelgbc = new GridBagConstraints(); panelgbc.anchor = GridBagConstraints.WEST; panelgbc.fill = GridBagConstraints.NONE; panelgbc.weightx = 0; panelgbc.weighty = 0; subPanel.setBackground(controlsPanel.getBackground()); panelgbc.insets = new Insets(0, 0, 0, 0); Utility.add(subPanel, changeDetectCheck, panelgbl, panelgbc, 0, 0, 1, 1); Utility.add(subPanel, fullScreenCheck, panelgbl, panelgbc, 1, 0, 1, 1); Utility.add(subPanel, previewCheck, panelgbl, panelgbc, 2, 0, 1, 1); gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.NONE; gbc.insets = new Insets(-5, 0, 3, 0); Utility.add(controlsPanel, subPanel, controlsgbl, gbc, 0, panelrow, 1, 1); ++panelrow; // (vii) text field for the TextStream /* panelgbl = new GridBagLayout(); subPanel = new JPanel(panelgbl); panelgbc = new GridBagConstraints(); panelgbc.anchor = GridBagConstraints.CENTER; panelgbc.fill = GridBagConstraints.HORIZONTAL; panelgbc.weightx = 100; panelgbc.weighty = 100; subPanel.setBackground(controlsPanel.getBackground()); panelgbc.insets = new Insets(0, 0, 0, 0); Utility.add(subPanel, textScrollPane, panelgbl, panelgbc, 1, 0, 1, 1); gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weightx = 100; gbc.weighty = 100; gbc.insets = new Insets(0, 15, 3, 15); Utility.add(controlsPanel, subPanel, controlsgbl, gbc, 0, panelrow, 2, 1); ++panelrow; */ gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weightx = 100; gbc.weighty = 0; gbc.insets = new Insets(0, 15, 5, 15); Utility.add(controlsPanel, textScrollPane, controlsgbl, gbc, 0, panelrow, 1, 1); gbc.fill = GridBagConstraints.NONE; gbc.weightx = 0; gbc.weighty = 0; ++panelrow; // // Second row: the translucent/transparent capture panel // if (bShapedWindowSupportedI) { // Doing the Shaped window; set capturePanel inside guiPanel // a bit so the red from guiPanel shows at the edges gbc.insets = new Insets(5, 5, 5, 5); } else { // No shaped window; have capturePanel fill the area gbc.insets = new Insets(0, 0, 0, 0); } gbc.fill = GridBagConstraints.BOTH; gbc.weightx = 100; gbc.weighty = 100; Utility.add(guiPanel, capturePanel, gbl, gbc, 0, row, 1, 1); gbc.fill = GridBagConstraints.NONE; gbc.weightx = 0; gbc.weighty = 0; ++row; // // Add guiPanel to guiFrame // gbc.anchor = GridBagConstraints.CENTER; gbc.fill = GridBagConstraints.BOTH; gbc.weightx = 100; gbc.weighty = 100; gbc.insets = new Insets(0, 0, 0, 0); Utility.add(guiFrame, guiPanel, framegbl, gbc, 0, 0, 1, 1); // // Add menu // JMenuBar menuBar = createMenu(); guiFrame.setJMenuBar(menuBar); // // If Shaped windows are supported, the region defined by capturePanel // will be "hollowed out" so that the user can reach through guiFrame // and interact with applications which are behind it. // // NOTE: This doesn't work on Mac OS (we've tried, but nothing seems // to work to allow a user to reach through guiFrame to interact // with windows behind). May be a limitation or bug on Mac OS: // https://bugs.openjdk.java.net/browse/JDK-8013450 // if (bShapedWindowSupportedI) { guiFrame.addComponentListener(new ComponentAdapter() { // As the window is resized, the shape is recalculated here. @Override public void componentResized(ComponentEvent e) { // Create a rectangle to cover the entire guiFrame Area guiShape = new Area(new Rectangle(0, 0, guiFrame.getWidth(), guiFrame.getHeight())); // Create another rectangle to define the hollowed out region of capturePanel guiShape.subtract(new Area(new Rectangle(capturePanel.getX(), capturePanel.getY() + 23, capturePanel.getWidth(), capturePanel.getHeight()))); guiFrame.setShape(guiShape); } }); } // // Final guiFrame configuration details and displaying the GUI // guiFrame.pack(); guiFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); guiFrame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { exit(false); } }); // Center on the screen guiFrame.setLocationRelativeTo(null); // // Set the taskbar/dock icon; note that Mac OS has its own way of doing it // if (bMacOS) { try { // JPW 2018/02/02: changed how to load images to work under Java 9 InputStream imageInputStreamLarge = getClass().getClassLoader() .getResourceAsStream("Icon_128x128.png"); BufferedImage bufferedImageLarge = ImageIO.read(imageInputStreamLarge); /** * * Java 9 note: running the following code under Java 9 on a Mac will produce the following warning: * * WARNING: An illegal reflective access operation has occurred * WARNING: Illegal reflective access by erigo.ctstream.CTstream (file:/Users/johnwilson/CT_versions/compiled_under_V8/CTstream.jar) to method com.apple.eawt.Application.getApplication() * WARNING: Please consider reporting this to the maintainers of erigo.ctstream.CTstream * WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations * WARNING: All illegal access operations will be denied in a future release * * This is because Java 9 has taken a step away from using reflection; see see the section titled * "Illegal Access To Internal APIs" at https://blog.codefx.org/java/java-9-migration-guide/. * * A good fix (but only available in Java 9+) is to use the following: * * java.awt.Taskbar taskbar = java.awt.Taskbar.getTaskbar(); * taskbar.setIconImage(bufferedImageLarge); * * Could use reflection to make calls in class com.apple.eawt.Application; for example, see * Bertil Chapuis' "dockicon.java" example code at https://gist.github.com/bchapuis/1562406 * * For now, we just won't do dock icons under Mac OS. * **/ } catch (Exception excepI) { System.err.println("Exception thrown trying to set icon: " + excepI); } } else { // The following has been tested under Windows 10 and Ubuntu 12.04 LTS try { // JPW 2018/02/02: changed how to load images to work under Java 9 InputStream imageInputStreamLarge = getClass().getClassLoader() .getResourceAsStream("Icon_128x128.png"); BufferedImage bufferedImageLarge = ImageIO.read(imageInputStreamLarge); InputStream imageInputStreamMed = getClass().getClassLoader().getResourceAsStream("Icon_64x64.png"); BufferedImage bufferedImageMed = ImageIO.read(imageInputStreamMed); InputStream imageInputStreamSmall = getClass().getClassLoader() .getResourceAsStream("Icon_32x32.png"); BufferedImage bufferedImageSmall = ImageIO.read(imageInputStreamSmall); List<BufferedImage> iconList = new ArrayList<BufferedImage>(); iconList.add(bufferedImageLarge); iconList.add(bufferedImageMed); iconList.add(bufferedImageSmall); guiFrame.setIconImages(iconList); } catch (Exception excepI) { System.err.println("Exception thrown trying to set icon: " + excepI); } } ctSettings = new CTsettings(this, guiFrame); guiFrame.setVisible(true); }