List of usage examples for java.awt GridBagConstraints NORTHWEST
int NORTHWEST
To view the source code for java.awt GridBagConstraints NORTHWEST.
Click Source Link
From source file:org.dwfa.ace.classifier.CNFormsLabelPanel.java
public JPanel newFormStatedJPanel(String label, I_ConfigAceFrame config, Map<I_ConceptAttributeTuple, Color> conAttrColorMap, Map<I_DescriptionTuple, Color> desColorMap, Map<I_RelTuple, Color> relColorMap) throws IOException { JPanel formJPanel = newMinMaxJPanel(); formJPanel.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.NORTHWEST; c.weightx = 0;//from ww w .j a va 2 s . c o m c.weighty = 0; c.gridx = 0; c.gridy = 0; List<LabelForTuple> tLabelList = new ArrayList<LabelForTuple>(); c.gridx = 0; c.gridwidth = 2; c.anchor = GridBagConstraints.NORTHWEST; // SHOW SELF CONCEPT I_ConceptAttributeTuple cTuple = findSelf(theCBean, cEditPathPos); I_ImplementActiveLabel tmpTLabel = TermLabelMaker.newLabelForm(cTuple, showDetailCB.isSelected(), showStatusCB.isSelected()); tLabelList.add((LabelForTuple) tmpTLabel); Color tmpDeltaColor = conAttrColorMap.get(cTuple); setBorder(tmpTLabel.getLabel(), tmpDeltaColor); formJPanel.add(tmpTLabel.getLabel(), c); c.gridy++; // SHOW PROXIMAL ISAs -- as relationships SnoGrpList isaSGList = cSnoTable.getStatedIsaProx(); List<I_RelTuple> isaList = new ArrayList<I_RelTuple>(); for (SnoGrp sg : isaSGList) for (SnoRel sr : sg) isaList.add(new RelVersion(sr.relNid)); for (I_RelTuple rTuple : isaList) { tmpTLabel = TermLabelMaker.newLabelForm(rTuple, showDetailCB.isSelected(), showStatusCB.isSelected()); tLabelList.add((LabelForTuple) tmpTLabel); tmpDeltaColor = relColorMap.get(rTuple); setBorder(tmpTLabel.getLabel(), tmpDeltaColor); formJPanel.add(tmpTLabel.getLabel(), c); c.gridy++; } // GET IMMEDIATE PROXIMAL ROLES & SEPARATE INTO GROUPS SnoGrpList sgl = cSnoTable.getStatedRole(); // !!! :FIXME: UNGROUPED, NOT LONGER JUST THE "0" GROUP if (sgl.size() > 0) { int i = 0; SnoGrp sg = sgl.get(0); // show each of the non-Rels if (sg.size() > 0 && sg.get(0).group == 0) { for (SnoRel sr : sg) { I_RelTuple rTuple = new RelVersion(sr.relNid); tmpTLabel = TermLabelMaker.newLabelForm(rTuple, showDetailCB.isSelected(), showStatusCB.isSelected()); tLabelList.add((LabelForTuple) tmpTLabel); tmpDeltaColor = relColorMap.get(rTuple); setBorder(tmpTLabel.getLabel(), tmpDeltaColor); formJPanel.add(tmpTLabel.getLabel(), c); c.gridy++; } i++; // skip past 0 index of the "un-grouped" } // show each of the groups for (; i < sgl.size(); i++) { sg = sgl.get(i); if (sg.size() == 0) continue; if (showGroupLabels) { // true shows one label per group List<I_RelTuple> grpTuple = new ArrayList<I_RelTuple>(); for (SnoRel sr : sg) { grpTuple.add(new RelVersion(sr.relNid)); } tmpTLabel = TermLabelMaker.newLabel(grpTuple, showDetailCB.isSelected(), showStatusCB.isSelected()); tLabelList.add((LabelForTuple) tmpTLabel); tmpDeltaColor = relColorMap.get(grpTuple.get(0)); setBorder(tmpTLabel.getLabel(), tmpDeltaColor); formJPanel.add(tmpTLabel.getLabel(), c); c.gridy++; } else { // if false, show 1 rel per label for (SnoRel sr : sg) { I_RelTuple rTuple = new RelVersion(sr.relNid); tmpTLabel = TermLabelMaker.newLabelForm(rTuple, showDetailCB.isSelected(), showStatusCB.isSelected()); tLabelList.add((LabelForTuple) tmpTLabel); tmpDeltaColor = relColorMap.get(rTuple); setBorder(tmpTLabel.getLabel(), tmpDeltaColor); formJPanel.add(tmpTLabel.getLabel(), c); c.gridy++; } c.gridy++; } } } c.weightx = 1.0; c.weighty = 1.0; c.gridwidth = 2; formJPanel.add(new JPanel(), c); formJPanel.setBorder(BorderFactory.createTitledBorder(label)); return formJPanel; }
From source file:org.esa.beam.visat.toolviews.stat.StatisticsPanel.java
private void updateLeftPanel() { PagePanel pagePanel = new StatisticsSpreadsheetPagePanel(parentDialog, helpID, statisticsCriteriaPanel, statsSpreadsheet, this); pagePanel.initComponents();/*w ww . j a v a 2 s . c om*/ spreadsheetPanel.removeAll(); // JPanel statsSpeadPanel = statsSpreadsheetPanel(); // spreadsheetPanel.add(statsSpeadPanel); spreadsheetPanel.add(pagePanel); // spreadsheetPanel.setBackground(Color.WHITE); spreadsheetScrollPane.setVisible(statisticsCriteriaPanel.showStatsSpreadSheet()); spreadsheetScrollPane.setMinimumSize(new Dimension(100, 100)); leftPanel.removeAll(); GridBagConstraints gbc = new GridBagConstraints(); gbc.gridy = 0; gbc.gridx = 0; gbc.anchor = GridBagConstraints.NORTHWEST; gbc.fill = GridBagConstraints.BOTH; gbc.weightx = 1.0; gbc.weighty = 1.0; // histogramPanel.setVisible(showHistogramPlots); if (statisticsCriteriaPanel.showPercentPlots() || statisticsCriteriaPanel.showHistogramPlots() || statisticsCriteriaPanel.showStatsList()) { if ((numStxRegions + 1) > spreadsheetMinRowsBeforeWeight) { gbc.weighty = 1.0 - spreadsheetHeightWeight; leftPanel.add(contentScrollPane, gbc); gbc.fill = GridBagConstraints.BOTH; gbc.weighty = spreadsheetHeightWeight; } else { leftPanel.add(contentScrollPane, gbc); gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weighty = 0; int buffer = 50; int minHeight = spreadsheetPanel.getPreferredSize().height + buffer; spreadsheetScrollPane.setMinimumSize(new Dimension(100, minHeight)); } gbc.gridy += 1; gbc.insets.top = 10; } else { gbc.fill = GridBagConstraints.BOTH; gbc.weighty = 1.0; } if (statisticsCriteriaPanel.showStatsSpreadSheet()) { leftPanel.add(spreadsheetScrollPane, gbc); } // gbc.gridy += 1; // leftPanel.add(pagePanel, gbc); leftPanel.revalidate(); leftPanel.repaint(); contentPanel.revalidate(); contentPanel.repaint(); backgroundPanel.revalidate(); backgroundPanel.repaint(); }
From source file:org.esa.beam.visat.toolviews.stat.StatisticsPanel.java
private JPanel createStatPanel(Stx stx, final Mask regionalMask, final Mask qualityMask, int stxIdx, RasterDataNode raster) {/*from ww w. j ava2 s . co m*/ final Histogram histogram = stx.getHistogram(); final int row = stxIdx + 1; // account for header boolean includeFileMetaData = statisticsCriteriaPanel.isIncludeFileMetaData(); boolean includeMaskMetaData = statisticsCriteriaPanel.isIncludeMaskMetaData(); boolean includeBandMetaData = statisticsCriteriaPanel.isIncludeBandMetaData(); boolean includeBinningInfo = statisticsCriteriaPanel.isIncludeBinningInfo(); ; boolean includeTimeMetaData = statisticsCriteriaPanel.isIncludeTimeMetaData(); boolean isIncludeTimeSeriesMetaData = statisticsCriteriaPanel.isIncludeTimeSeriesMetaData(); boolean includeProjectionParameters = statisticsCriteriaPanel.isIncludeProjectionParameters(); boolean includeColumnBreaks = statisticsCriteriaPanel.isIncludeColBreaks(); // Initialize all spreadsheet table indices to -1 (default don't use value) if (stxIdx == 0 || metaDataFieldsHashMap == null || primaryStatisticsFieldsHashMap == null) { initHashMaps(); } XIntervalSeries histogramSeries = new XIntervalSeries("Histogram"); double histDomainBounds[] = { histogram.getLowValue(0), histogram.getHighValue(0) }; double histRangeBounds[] = { Double.NaN, Double.NaN }; if (!fixedHistDomainAllPlots || (fixedHistDomainAllPlots && !fixedHistDomainAllPlotsInitialized)) { if (!statisticsCriteriaPanel.isLogMode()) { if (statisticsCriteriaPanel.plotsThreshDomainSpan()) { if (statisticsCriteriaPanel.plotsThreshDomainLow() >= 0.1) { histDomainBounds[0] = histogram .getPTileThreshold((statisticsCriteriaPanel.plotsThreshDomainLow()) / 100)[0]; } if (statisticsCriteriaPanel.plotsThreshDomainHigh() <= 99.9) { histDomainBounds[1] = histogram .getPTileThreshold(statisticsCriteriaPanel.plotsThreshDomainHigh() / 100)[0]; } } else if (statisticsCriteriaPanel.plotsDomainSpan()) { if (!Double.isNaN(statisticsCriteriaPanel.plotsDomainLow())) { histDomainBounds[0] = statisticsCriteriaPanel.plotsDomainLow(); } if (!Double.isNaN(statisticsCriteriaPanel.plotsDomainHigh())) { histDomainBounds[1] = statisticsCriteriaPanel.plotsDomainHigh(); } } } else { histDomainBounds[0] = histogram.getBinLowValue(0, 0); histDomainBounds[1] = histogram.getHighValue(0); } // if (!LogMode && plotsThreshDomainSpan && plotsThreshDomainLow >= 0.1 && plotsThreshDomainHigh <= 99.9) { // histDomainBounds[0] = histogram.getPTileThreshold((plotsThreshDomainLow) / 100)[0]; // histDomainBounds[1] = histogram.getPTileThreshold(plotsThreshDomainHigh / 100)[0]; // // } else { // histDomainBounds[0] = histogram.getBinLowValue(0, 0); // histDomainBounds[1] = histogram.getHighValue(0); // } if (fixedHistDomainAllPlots && !fixedHistDomainAllPlotsInitialized) { histDomainBoundsAllPlots[0] = histDomainBounds[0]; histDomainBoundsAllPlots[1] = histDomainBounds[1]; fixedHistDomainAllPlotsInitialized = true; } } else { histDomainBounds[0] = histDomainBoundsAllPlots[0]; histDomainBounds[1] = histDomainBoundsAllPlots[1]; } int[] bins = histogram.getBins(0); for (int j = 0; j < bins.length; j++) { histogramSeries.add(histogram.getBinLowValue(0, j), histogram.getBinLowValue(0, j), j < bins.length - 1 ? histogram.getBinLowValue(0, j + 1) : histogram.getHighValue(0), bins[j]); } String logTitle = (statisticsCriteriaPanel.isLogMode()) ? "Log10 of " : ""; ChartPanel histogramPanel = createChartPanel(histogramSeries, logTitle + raster.getName() + " (" + raster.getUnit() + ")", "Frequency in #Pixels", new Color(0, 0, 127), histDomainBounds, histRangeBounds); // histogramPanel.setPreferredSize(new Dimension(300, 200)); if (statisticsCriteriaPanel.exactPlotSize()) { histogramPanel.setMinimumSize(new Dimension(statisticsCriteriaPanel.plotSizeWidth(), statisticsCriteriaPanel.plotSizeHeight())); histogramPanel.setPreferredSize(new Dimension(statisticsCriteriaPanel.plotSizeWidth(), statisticsCriteriaPanel.plotSizeHeight())); histogramPanel.setMaximumSize(new Dimension(statisticsCriteriaPanel.plotSizeWidth(), statisticsCriteriaPanel.plotSizeHeight())); } else { histogramPanel.setMinimumSize(new Dimension(plotMinWidth, plotMinHeight)); histogramPanel.setPreferredSize(new Dimension(plotMinWidth, plotMinHeight)); } XIntervalSeries percentileSeries = new XIntervalSeries("Percentile"); // if (1 == 2 && LogMode) { // percentileSeries.add(0, // 0, // 1, // Math.pow(10, histogram.getLowValue(0))); // for (int j = 1; j < 99; j++) { // percentileSeries.add(j, // j, // j + 1, // Math.pow(10, histogram.getPTileThreshold(j / 100.0)[0])); // } // percentileSeries.add(99, // 99, // 100, // Math.pow(10, histogram.getHighValue(0))); // // } else { // percentileSeries.add(0, // 0, // 0.25, // histogram.getLowValue(0)); // // for (double j = 0.25; j < 99.75; j += .25) { // percentileSeries.add(j, // j, // j + 1, // histogram.getPTileThreshold(j / 100.0)[0]); // } // percentileSeries.add(99.75, // 99.75, // 100, // histogram.getHighValue(0)); // } // // double fraction = 0; // for (int j = 0; j < bins.length; j++) { // // fraction = (1.0) * j / bins.length; // // if (fraction > 0 && fraction < 1) { // percentileSeries.add(histogram.getBinLowValue(0, j), // histogram.getBinLowValue(0, j), // j < bins.length - 1 ? histogram.getBinLowValue(0, j + 1) : histogram.getHighValue(0), // histogram.getPTileThreshold(fraction)[0]); // } // // // } // // double test = fraction; double[] percentileDomainBounds = { Double.NaN, Double.NaN }; double[] percentileRangeBounds = { Double.NaN, Double.NaN }; ChartPanel percentilePanel = null; if (invertPercentile) { double increment = .01; for (double j = 0; j < 100; j += increment) { double fraction = j / 100.0; double nextFraction = (j + increment) / 100.0; if (fraction > 0.0 && fraction < 1.0 && nextFraction > 0.0 && nextFraction < 1.0) { double thresh = histogram.getPTileThreshold(fraction)[0]; double nextThresh = histogram.getPTileThreshold(nextFraction)[0]; percentileSeries.add(thresh, thresh, nextThresh, j); } } if (!statisticsCriteriaPanel.isLogMode()) { percentileDomainBounds[0] = histDomainBounds[0]; percentileDomainBounds[1] = histDomainBounds[1]; } percentileRangeBounds[0] = 0; percentileRangeBounds[1] = 100; percentilePanel = createScatterChartPanel(percentileSeries, logTitle + raster.getName() + " (" + raster.getUnit() + ")", "Percent Threshold", new Color(0, 0, 0), percentileDomainBounds, percentileRangeBounds); } else { percentileSeries.add(0, 0, 0.25, histogram.getLowValue(0)); for (double j = 0.25; j < 99.75; j += .25) { percentileSeries.add(j, j, j + 1, histogram.getPTileThreshold(j / 100.0)[0]); } percentileSeries.add(99.75, 99.75, 100, histogram.getHighValue(0)); percentileDomainBounds[0] = 0; percentileDomainBounds[1] = 100; percentileRangeBounds[0] = histDomainBounds[0]; percentileRangeBounds[1] = histDomainBounds[1]; percentilePanel = createScatterChartPanel(percentileSeries, "Percent_Threshold", logTitle + raster.getName() + " (" + raster.getUnit() + ")", new Color(0, 0, 0), percentileDomainBounds, percentileRangeBounds); } // percentilePanel.setPreferredSize(new Dimension(300, 200)); if (statisticsCriteriaPanel.exactPlotSize()) { percentilePanel.setMinimumSize(new Dimension(statisticsCriteriaPanel.plotSizeWidth(), statisticsCriteriaPanel.plotSizeHeight())); percentilePanel.setPreferredSize(new Dimension(statisticsCriteriaPanel.plotSizeWidth(), statisticsCriteriaPanel.plotSizeHeight())); percentilePanel.setMaximumSize(new Dimension(statisticsCriteriaPanel.plotSizeWidth(), statisticsCriteriaPanel.plotSizeHeight())); } else { percentilePanel.setMinimumSize(new Dimension(plotMinWidth, plotMinHeight)); percentilePanel.setPreferredSize(new Dimension(plotMinWidth, plotMinHeight)); } int size = raster.getRasterHeight() * raster.getRasterWidth(); int validPixelCount = histogram.getTotals()[0]; int dataRows = 0; // new Object[]{"RasterSize(Pixels)", size}, // new Object[]{"SampleSize(Pixels)", histogram.getTotals()[0]}, Object[][] totalPixels = null; if (statisticsCriteriaPanel.includeTotalPixels()) { int totalPixelCount = stx.getRawTotal(); double percentFilled = (totalPixelCount > 0) ? (1.0 * validPixelCount / totalPixelCount) : 0; totalPixels = new Object[][] { new Object[] { "Regional_Pixels", stx.getRawTotal() }, new Object[] { "Valid_Pixels", validPixelCount }, new Object[] { "Fraction_Valid", percentFilled } }; } else { totalPixels = new Object[][] { new Object[] { "Valid_Pixels", validPixelCount } }; } dataRows += totalPixels.length; Object[][] firstData = new Object[][] { new Object[] { "Mean", stx.getMean() } }; dataRows += firstData.length; Object[][] minMaxData = null; if (statisticsCriteriaPanel.includeMinMax()) { minMaxData = new Object[][] { new Object[] { "Minimum", stx.getMinimum() }, new Object[] { "Maximum", stx.getMaximum() } }; dataRows += minMaxData.length; } Object[] medianObject = null; if (statisticsCriteriaPanel.includeMedian()) { medianObject = new Object[] { "Median", stx.getMedianRaster() }; dataRows++; } Object[][] secondData = new Object[][] { new Object[] { "Standard_Deviation", stx.getStandardDeviation() }, new Object[] { "Variance", getVariance(stx) }, new Object[] { "Coefficient_of_Variation", getCoefficientOfVariation(stx) } }; dataRows += secondData.length; Object[][] binningInfo = null; if (statisticsCriteriaPanel.isIncludeBinningInfo()) { binningInfo = new Object[][] { new Object[] { "Total_Bins", histogram.getNumBins()[0] }, new Object[] { "Bin_Width", getBinSize(histogram) }, new Object[] { "Bin_Min", histogram.getLowValue(0) }, new Object[] { "Bin_Max", histogram.getHighValue(0) } }; dataRows += binningInfo.length; } Object[][] histogramStats = null; if (statisticsCriteriaPanel.includeHistogramStats()) { if (statisticsCriteriaPanel.isLogMode()) { histogramStats = new Object[][] { new Object[] { "Mean(LogBinned)", Math.pow(10, histogram.getMean()[0]) }, new Object[] { "Median(LogBinned)", Math.pow(10, stx.getMedian()) }, new Object[] { "StandardDeviation(LogBinned)", Math.pow(10, histogram.getStandardDeviation()[0]) } }; } else { histogramStats = new Object[][] { new Object[] { "Mean(Binned)", histogram.getMean()[0] }, new Object[] { "Median(Binned)", stx.getMedian() }, new Object[] { "StandardDeviation(Binned)", histogram.getStandardDeviation()[0] } }; } dataRows += histogramStats.length; } Object[][] percentData = new Object[statisticsCriteriaPanel.getPercentThresholdsList().size()][]; for (int i = 0; i < statisticsCriteriaPanel.getPercentThresholdsList().size(); i++) { int value = statisticsCriteriaPanel.getPercentThresholdsList().get(i); double percent = value / 100.0; String percentString = Integer.toString(value); Object[] pTileThreshold; if (statisticsCriteriaPanel.isLogMode()) { pTileThreshold = new Object[] { percentString + "%Threshold(Log)", Math.pow(10, histogram.getPTileThreshold(percent)[0]) }; } else { pTileThreshold = new Object[] { percentString + "%Threshold", histogram.getPTileThreshold(percent)[0] }; } percentData[i] = pTileThreshold; } dataRows += percentData.length; Object[][] tableData = new Object[dataRows][]; int tableDataIdx = 0; if (totalPixels != null) { for (int i = 0; i < totalPixels.length; i++) { tableData[tableDataIdx] = totalPixels[i]; tableDataIdx++; } } if (firstData != null) { for (int i = 0; i < firstData.length; i++) { tableData[tableDataIdx] = firstData[i]; tableDataIdx++; } } if (medianObject != null) { tableData[tableDataIdx] = medianObject; tableDataIdx++; } if (minMaxData != null) { for (int i = 0; i < minMaxData.length; i++) { tableData[tableDataIdx] = minMaxData[i]; tableDataIdx++; } } if (secondData != null) { for (int i = 0; i < secondData.length; i++) { tableData[tableDataIdx] = secondData[i]; tableDataIdx++; } } if (binningInfo != null) { for (int i = 0; i < binningInfo.length; i++) { tableData[tableDataIdx] = binningInfo[i]; tableDataIdx++; } } if (histogramStats != null) { for (int i = 0; i < histogramStats.length; i++) { tableData[tableDataIdx] = histogramStats[i]; tableDataIdx++; } } if (percentData != null) { for (int i = 0; i < percentData.length; i++) { tableData[tableDataIdx] = percentData[i]; tableDataIdx++; } } numStxFields = tableData.length; int fieldIdx = 0; // Initialize indices if (stxIdx == 0) { primaryStatisticsFieldsHashMap.put(PrimaryStatisticsFields.FileRefNum, fieldIdx); fieldIdx++; primaryStatisticsFieldsHashMap.put(PrimaryStatisticsFields.BandName, fieldIdx); fieldIdx++; primaryStatisticsFieldsHashMap.put(PrimaryStatisticsFields.MaskName, fieldIdx); fieldIdx++; primaryStatisticsFieldsHashMap.put(PrimaryStatisticsFields.QualityMaskName, fieldIdx); fieldIdx++; stxFieldsStartIdx = fieldIdx; fieldIdx += numStxFields; stxFieldsEndIdx = fieldIdx - 1; if (includeBandMetaData) { if (includeColumnBreaks) { metaDataFieldsHashMap.put(MetaDataFields.BandMetaDataBreak, fieldIdx); fieldIdx++; } metaDataFieldsHashMap.put(MetaDataFields.BandName, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.BandUnit, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.BandValidExpression, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.BandDescription, fieldIdx); fieldIdx++; } if (includeMaskMetaData) { if (includeColumnBreaks) { metaDataFieldsHashMap.put(MetaDataFields.RegionalMaskMetaDataBreak, fieldIdx); fieldIdx++; } metaDataFieldsHashMap.put(MetaDataFields.RegionalMaskName, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.RegionalMaskDescription, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.RegionalMaskExpression, fieldIdx); fieldIdx++; if (includeColumnBreaks) { metaDataFieldsHashMap.put(MetaDataFields.QualityMaskMetaDataBreak, fieldIdx); fieldIdx++; } metaDataFieldsHashMap.put(MetaDataFields.QualityMaskName, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.QualityMaskDescription, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.QualityMaskExpression, fieldIdx); fieldIdx++; } if (includeTimeMetaData || isIncludeTimeSeriesMetaData) { if (includeColumnBreaks) { metaDataFieldsHashMap.put(MetaDataFields.TimeMetaDataBreak, fieldIdx); fieldIdx++; } if (includeTimeMetaData) { metaDataFieldsHashMap.put(MetaDataFields.StartDate, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.StartTime, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.EndDate, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.EndTime, fieldIdx); fieldIdx++; } if (isIncludeTimeSeriesMetaData) { metaDataFieldsHashMap.put(MetaDataFields.TimeSeriesDate, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.TimeSeriesTime, fieldIdx); fieldIdx++; } } if (includeFileMetaData) { if (includeColumnBreaks) { metaDataFieldsHashMap.put(MetaDataFields.FileMetaDataBreak, fieldIdx); fieldIdx++; } metaDataFieldsHashMap.put(MetaDataFields.FileName, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.FileType, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.FileFormat, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.FileWidth, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.FileHeight, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.Sensor, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.Platform, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.Resolution, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.DayNight, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.Orbit, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.ProcessingVersion, fieldIdx); fieldIdx++; metaDataFieldsHashMap.put(MetaDataFields.Projection, fieldIdx); fieldIdx++; } if (includeProjectionParameters) { metaDataFieldsHashMap.put(MetaDataFields.ProjectionParameters, fieldIdx); fieldIdx++; } } if (statsSpreadsheet == null) { statsSpreadsheet = new Object[numStxRegions + 2][fieldIdx]; // add 1 row to account for the header and 1 more empty row because JTable for some reason displays // only half of the last row when row count is large } String startDateString = ""; String startTimeString = ""; String endDateString = ""; String endTimeString = ""; if (includeTimeMetaData) { ProductData.UTC startDateTimeCorrected; ProductData.UTC endDateTimeCorrected; // correct time (invert start and end time if end time later than start time if (getProduct().getStartTime() != null && getProduct().getEndTime() != null) { if (getProduct().getStartTime().getMJD() <= getProduct().getEndTime().getMJD()) { startDateTimeCorrected = getProduct().getStartTime(); endDateTimeCorrected = getProduct().getEndTime(); } else { startDateTimeCorrected = getProduct().getEndTime(); endDateTimeCorrected = getProduct().getStartTime(); } if (startDateTimeCorrected != null) { String[] startDateTimeStringArray = startDateTimeCorrected.toString().split(" "); if (startDateTimeStringArray.length >= 2) { startDateString = startDateTimeStringArray[0].trim(); startTimeString = startDateTimeStringArray[1].trim(); } } if (endDateTimeCorrected != null) { String[] endDateTimeStringArray = endDateTimeCorrected.toString().split(" "); if (endDateTimeStringArray.length >= 2) { endDateString = endDateTimeStringArray[0].trim(); endTimeString = endDateTimeStringArray[1].trim(); } } } } String timeSeriesDate = ""; String timeSeriesTime = ""; if (isIncludeTimeSeriesMetaData) { String bandName = raster.getName(); String productDateTime = convertBandNameToProductTime(bandName); if (productDateTime != null) { String[] endDateTimeStringArray = productDateTime.split(" "); if (endDateTimeStringArray.length >= 2) { timeSeriesDate = endDateTimeStringArray[0].trim(); timeSeriesTime = endDateTimeStringArray[1].trim(); } } } String maskName = ""; String maskDescription = ""; String maskExpression = ""; if (regionalMask != null) { maskName = regionalMask.getName(); maskDescription = regionalMask.getDescription(); maskExpression = regionalMask.getImageConfig().getValue("expression"); } String qualityMaskName = ""; String qualityMaskDescription = ""; String qualityMaskExpression = ""; if (qualityMask != null) { qualityMaskName = qualityMask.getName(); qualityMaskDescription = qualityMask.getDescription(); qualityMaskExpression = qualityMask.getImageConfig().getValue("expression"); } addFieldToSpreadsheet(row, PrimaryStatisticsFields.FileRefNum, getProduct().getRefNo()); addFieldToSpreadsheet(row, PrimaryStatisticsFields.BandName, raster.getName()); addFieldToSpreadsheet(row, PrimaryStatisticsFields.MaskName, maskName); addFieldToSpreadsheet(row, PrimaryStatisticsFields.QualityMaskName, qualityMaskName); addFieldToSpreadsheet(row, MetaDataFields.TimeMetaDataBreak, COLUMN_BREAK); addFieldToSpreadsheet(row, MetaDataFields.StartDate, startDateString); addFieldToSpreadsheet(row, MetaDataFields.StartTime, startTimeString); addFieldToSpreadsheet(row, MetaDataFields.EndDate, endDateString); addFieldToSpreadsheet(row, MetaDataFields.EndTime, endTimeString); addFieldToSpreadsheet(row, MetaDataFields.TimeSeriesDate, timeSeriesDate); addFieldToSpreadsheet(row, MetaDataFields.TimeSeriesTime, timeSeriesTime); addFieldToSpreadsheet(row, MetaDataFields.FileMetaDataBreak, COLUMN_BREAK); addFieldToSpreadsheet(row, MetaDataFields.FileName, getProduct().getName()); addFieldToSpreadsheet(row, MetaDataFields.FileType, getProduct().getProductType()); addFieldToSpreadsheet(row, MetaDataFields.FileWidth, getProduct().getSceneRasterWidth()); addFieldToSpreadsheet(row, MetaDataFields.FileFormat, getProductFormatName(getProduct())); addFieldToSpreadsheet(row, MetaDataFields.FileHeight, getProduct().getSceneRasterHeight()); addFieldToSpreadsheet(row, MetaDataFields.Sensor, ProductUtils.getMetaData(getProduct(), ProductUtils.METADATA_POSSIBLE_SENSOR_KEYS)); addFieldToSpreadsheet(row, MetaDataFields.Platform, ProductUtils.getMetaData(getProduct(), ProductUtils.METADATA_POSSIBLE_PLATFORM_KEYS)); addFieldToSpreadsheet(row, MetaDataFields.Resolution, ProductUtils.getMetaData(getProduct(), ProductUtils.METADATA_POSSIBLE_RESOLUTION_KEYS)); addFieldToSpreadsheet(row, MetaDataFields.DayNight, ProductUtils.getMetaData(getProduct(), ProductUtils.METADATA_POSSIBLE_DAY_NIGHT_KEYS)); addFieldToSpreadsheet(row, MetaDataFields.Orbit, ProductUtils.getMetaDataOrbit(getProduct())); addFieldToSpreadsheet(row, MetaDataFields.ProcessingVersion, ProductUtils.getMetaData(getProduct(), ProductUtils.METADATA_POSSIBLE_PROCESSING_VERSION_KEYS)); // Determine projection String projection = ""; String projectionParameters = ""; GeoCoding geo = getProduct().getGeoCoding(); // determine if using class CrsGeoCoding otherwise display class if (geo != null) { if (geo instanceof CrsGeoCoding) { projection = geo.getMapCRS().getName().toString() + "(obtained from CrsGeoCoding)"; projectionParameters = geo.getMapCRS().toString().replaceAll("\n", " ").replaceAll(" ", ""); } else if (geo.toString() != null) { String projectionFromMetaData = ProductUtils.getMetaData(getProduct(), ProductUtils.METADATA_POSSIBLE_PROJECTION_KEYS); if (projectionFromMetaData != null && projectionFromMetaData.length() > 0) { projection = projectionFromMetaData + "(obtained from MetaData)"; } else { projection = "unknown (" + geo.getClass().toString() + ")"; } } } addFieldToSpreadsheet(row, MetaDataFields.Projection, projection); addFieldToSpreadsheet(row, MetaDataFields.ProjectionParameters, projectionParameters); addFieldToSpreadsheet(row, MetaDataFields.BandMetaDataBreak, COLUMN_BREAK); addFieldToSpreadsheet(row, MetaDataFields.BandName, raster.getName()); addFieldToSpreadsheet(row, MetaDataFields.BandUnit, raster.getUnit()); addFieldToSpreadsheet(row, MetaDataFields.BandValidExpression, raster.getValidPixelExpression()); addFieldToSpreadsheet(row, MetaDataFields.BandDescription, raster.getDescription()); addFieldToSpreadsheet(row, MetaDataFields.RegionalMaskMetaDataBreak, COLUMN_BREAK); addFieldToSpreadsheet(row, MetaDataFields.RegionalMaskName, maskName); addFieldToSpreadsheet(row, MetaDataFields.RegionalMaskDescription, maskDescription); addFieldToSpreadsheet(row, MetaDataFields.RegionalMaskExpression, maskExpression); addFieldToSpreadsheet(row, MetaDataFields.QualityMaskMetaDataBreak, COLUMN_BREAK); addFieldToSpreadsheet(row, MetaDataFields.QualityMaskName, qualityMaskName); addFieldToSpreadsheet(row, MetaDataFields.QualityMaskDescription, qualityMaskDescription); addFieldToSpreadsheet(row, MetaDataFields.QualityMaskExpression, qualityMaskExpression); // Add Header first time through if (row <= 1) { int k = stxFieldsStartIdx; for (int i = 0; i < tableData.length; i++) { Object value = tableData[i][0]; if (k < statsSpreadsheet[0].length && k <= stxFieldsEndIdx) { statsSpreadsheet[0][k] = value; k++; } } } // account for header as added row if (row < statsSpreadsheet.length) { int k = stxFieldsStartIdx; for (int i = 0; i < tableData.length; i++) { Object value = tableData[i][1]; if (k < statsSpreadsheet[row].length && k <= stxFieldsEndIdx) { statsSpreadsheet[row][k] = value; k++; } } } int numPlots = 0; if (statisticsCriteriaPanel.showPercentPlots()) { numPlots++; } if (statisticsCriteriaPanel.showHistogramPlots()) { numPlots++; } JPanel plotContainerPanel = null; if (numPlots > 0) { plotContainerPanel = new JPanel(new GridLayout(1, numPlots)); if (statisticsCriteriaPanel.showHistogramPlots()) { plotContainerPanel.add(histogramPanel); } if (statisticsCriteriaPanel.showPercentPlots()) { plotContainerPanel.add(percentilePanel); } } TableModel tableModel = new DefaultTableModel(tableData, new String[] { "Name", "Value" }) { @Override public Class<?> getColumnClass(int columnIndex) { return columnIndex == 0 ? String.class : Number.class; } @Override public boolean isCellEditable(int row, int column) { return false; } }; final JTable table = new JTable(tableModel); table.setDefaultRenderer(Number.class, new DefaultTableCellRenderer() { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component label = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value instanceof Float || value instanceof Double) { setHorizontalTextPosition(RIGHT); setText(getFormattedValue((Number) value)); } return label; } private String getFormattedValue(Number value) { if (value.doubleValue() < 0.001 && value.doubleValue() > -0.001 && value.doubleValue() != 0.0) { return new DecimalFormat("0.####E0").format(value.doubleValue()); } String format = "%." + Integer.toString(statisticsCriteriaPanel.decimalPlaces()) + "f"; return String.format(format, value.doubleValue()); } }); table.addMouseListener(popupHandler); // TEST CODE generically preferred size of each column based on longest expected entry // fails a bit because decimal formatting is not captured // stub of code commented out in case we want to make it work // meanwhile longest entry is being used SEE below // int column0Length = 0; // int column1Length = 0; // FontMetrics fm = table.getFontMetrics(table.getFont()); // for (int rowIndex = 0; rowIndex < table.getRowCount(); rowIndex++) { // String test = table.getValueAt(rowIndex,0).toString(); // int currColumn0Length = fm.stringWidth(table.getValueAt(rowIndex,0).toString()); // if (currColumn0Length > column0Length) { // column0Length = currColumn0Length; // } // // String test2 = table.getValueAt(rowIndex,1).toString(); // int currColumn1Length = fm.stringWidth(table.getValueAt(rowIndex,1).toString()); // if (currColumn1Length > column1Length) { // column1Length = currColumn1Length; // } // } // Set preferred size of each column based on longest expected entry FontMetrics fm = table.getFontMetrics(table.getFont()); TableColumn column = null; int col1PreferredWidth = -1; if (statisticsCriteriaPanel.isLogMode()) { col1PreferredWidth = fm.stringWidth("StandardDeviation(LogBinned):") + 10; } else { col1PreferredWidth = fm.stringWidth("StandardDeviation(Binned):") + 10; } // int col1PreferredWidth = fm.stringWidth("wwwwwwwwwwwwwwwwwwwwwwwwww"); int col2PreferredWidth = fm.stringWidth("1234567890") + 10; int tablePreferredWidth = col1PreferredWidth + col2PreferredWidth; for (int i = 0; i < 2; i++) { column = table.getColumnModel().getColumn(i); if (i == 0) { column.setPreferredWidth(col1PreferredWidth); column.setMaxWidth(col1PreferredWidth); } else { column.setPreferredWidth(col2PreferredWidth); } } JPanel textContainerPanel = new JPanel(new BorderLayout(2, 2)); // textContainerPanel.setBackground(Color.WHITE); textContainerPanel.add(table, BorderLayout.CENTER); textContainerPanel.addMouseListener(popupHandler); JPanel statsPane = GridBagUtils.createPanel(); GridBagConstraints gbc = GridBagUtils.createConstraints(""); gbc.gridy = 0; gbc.fill = GridBagConstraints.BOTH; gbc.anchor = GridBagConstraints.NORTHWEST; gbc.weightx = 1; gbc.weighty = 1; Dimension dim = table.getPreferredSize(); table.setPreferredSize(new Dimension(tablePreferredWidth, dim.height)); statsPane.add(table, gbc); statsPane.setPreferredSize(new Dimension(tablePreferredWidth, dim.height)); JPanel plotsPane = null; if (plotContainerPanel != null) { plotsPane = GridBagUtils.createPanel(); plotsPane.setBackground(Color.WHITE); // plotsPane.setBorder(UIUtils.createGroupBorder(" ")); /*I18N*/ GridBagConstraints gbcPlots = GridBagUtils.createConstraints(""); gbcPlots.gridy = 0; if (statisticsCriteriaPanel.exactPlotSize()) { gbcPlots.fill = GridBagConstraints.NONE; } else { gbcPlots.fill = GridBagConstraints.BOTH; } gbcPlots.anchor = GridBagConstraints.NORTHWEST; gbcPlots.weightx = 0.5; gbcPlots.weighty = 1; plotsPane.add(plotContainerPanel, gbcPlots); } JPanel mainPane = GridBagUtils.createPanel(); mainPane.setBorder(UIUtils.createGroupBorder(getSubPanelTitle(regionalMask, qualityMask, raster))); /*I18N*/ GridBagConstraints gbcMain = GridBagUtils.createConstraints(""); gbcMain.gridx = 0; gbcMain.gridy = 0; gbcMain.anchor = GridBagConstraints.NORTHWEST; if (plotsPane != null) { gbcMain.fill = GridBagConstraints.VERTICAL; gbcMain.weightx = 0; } else { gbcMain.fill = GridBagConstraints.BOTH; gbcMain.weightx = 1; } if (statisticsCriteriaPanel.showStatsList()) { gbcMain.weighty = 1; mainPane.add(statsPane, gbcMain); gbcMain.gridx++; } gbcMain.weightx = 1; gbcMain.weighty = 1; gbcMain.fill = GridBagConstraints.BOTH; if (plotsPane != null) { mainPane.add(plotsPane, gbcMain); } return mainPane; }
From source file:base.BasePlayer.Main.java
void setButtons() { try {/* ww w.j a va 2s. co m*/ // filemenu.setFont(font); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.NORTHWEST; c.insets = new Insets(1, 4, 4, 2); //c.insets = new Insets(5, 5, 2, 5); c.gridx = 0; c.gridy = 0; c.gridwidth = 1; /* opensamples.setMargin(new Insets(0, 0, 0,0)); opensamples.setPreferredSize(buttonDimension); addtracks.setMargin(new Insets(0, 0, 0, 0)); addtracks.setPreferredSize(buttonDimension); addcontrols.setMargin(new Insets(0, 0, 0, 0)); addcontrols.setPreferredSize(buttonDimension); */ menubar.setOpaque(true); panel.add(menubar, c); c.gridx = 1; setbut = new JButton("", settingsIcon); setbut.setToolTipText("Settings"); setbut.setOpaque(false); setbut.setContentAreaFilled(false); setbut.setBackground(Main.panel.getBackground()); setbut.addMouseListener(new MouseListener() { @Override public void mouseClicked(MouseEvent e) { } @Override public void mousePressed(MouseEvent e) { Settings.frame.setLocation( frame.getLocationOnScreen().x + frame.getWidth() / 2 - Settings.frame.getWidth() / 2, frame.getLocationOnScreen().y + frame.getHeight() / 6); Settings.frame.setState(JFrame.NORMAL); Settings.frame.setVisible(true); } @Override public void mouseReleased(MouseEvent e) { } @Override public void mouseEntered(MouseEvent e) { setbut.setOpaque(true); Main.setbut.setBackground(Color.white); Main.setbut.revalidate(); } @Override public void mouseExited(MouseEvent e) { setbut.setOpaque(false); Main.setbut.revalidate(); } }); setbut.setBorder(null); c.insets = new Insets(0, 2, 0, 0); menubar.add(setbut, c); // c.gridx = 1; // c.gridx = 2; // c.gridx = 3; // zoomout.setMargin(new Insets(0, 0, 0, 0)); // panel.add(zoomout, c); /* JMenuItem empty2 = new JMenuItem(""); empty2.setEnabled(false); menubar.add(empty2); c.gridx = 4;*/ // chromosomeDropdown.setPreferredSize(buttonDimension); // panel.add(chromosomeDropdown, c); // c.gridx = 5; // back.setMargin(new Insets(0, 0, 0, 0)); // forward.setMargin(new Insets(0, 0, 0, 0)); // back.setPreferredSize(new Dimension(back.getFontMetrics(back.getFont()).stringWidth("<")+10,(int)fieldDimension.getHeight())); // forward.setPreferredSize(new Dimension(forward.getFontMetrics(forward.getFont()).stringWidth("<")+10,(int)fieldDimension.getHeight())); //back.setMinimumSize(new Dimension(back.getFontMetrics(back.getFont()).stringWidth("<")+10,(int)fieldDimension.getHeight())); // forward.setMinimumSize(new Dimension(forward.getFontMetrics(forward.getFont()).stringWidth("<")+10,(int)fieldDimension.getHeight())); // panel.add(back, c); // c.gridx = 7; // panel.add(forward, c); chromosomeDropdown.setMaximumRowCount(25); chromosomeDropdown.setEnabled(true); chromosomeDropdown.addActionListener(ChromoDropActionListener); chromosomeDropdown.addMouseListener(this); c.gridwidth = 10; c.gridx = 0; c.gridy = 1; bedScroll = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); bedScroll.getViewport().setPreferredSize(bedDimensions); drawScroll = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); drawScroll.getViewport().setPreferredSize(drawDimensions); chromScroll = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); chromScroll.getViewport().setPreferredSize(chromDimensions); drawScroll.getVerticalScrollBar().setAutoscrolls(false); // chromScroll.getViewport().setPreferredSize(new Dimension(drawWidth,chromHeight-20)); // drawScroll.setBorder(BorderFactory.createEmptyBorder()); //chromScroll.setBorder(BorderFactory.createLoweredBevelBorder()); // drawScroll.setBorder(BorderFactory.createLoweredBevelBorder()); // bedScroll.setBorder(BorderFactory.createLoweredBevelBorder()); // chromScroll.setBorder(BorderFactory.createEmptyBorder()); // bedScroll.setBorder(BorderFactory.createEmptyBorder()); controlScroll = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); controlScroll.getViewport().setPreferredSize(bedDimensions); controlScroll.getViewport().add(controlDraw); controlDraw.setVisible(false); controlScroll.setVisible(false); chromScroll.setBorder(BorderFactory.createEmptyBorder()); drawScroll.setBorder(BorderFactory.createEmptyBorder()); bedScroll.setBorder(BorderFactory.createLoweredBevelBorder()); controlScroll.setBorder(BorderFactory.createLoweredBevelBorder()); addSplit(chromosomeDropdown.getItemAt(0)); chromScroll.getViewport().add(chromDraw); drawScroll.getViewport().add(drawCanvas); drawScroll.addMouseListener(this); bedCanvas = new BedCanvas(drawWidth, 200); bedScroll.getViewport().add(bedCanvas); frame.setExtendedState(frame.getExtendedState() | JFrame.MAXIMIZED_BOTH); c.weightx = 1.0; c.weighty = 1.0; c.fill = GridBagConstraints.BOTH; trackPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, bedScroll, controlScroll); trackPane.setUI(new BasicSplitPaneUI() { public BasicSplitPaneDivider createDefaultDivider() { return new BasicSplitPaneDivider(this) { private static final long serialVersionUID = 1L; public void setBorder(Border b) { } @Override public void paint(Graphics g) { g.setColor(Color.lightGray); g.fillRect(0, 0, getSize().width, getSize().height); super.paint(g); } }; } }); trackPane.setBorder(null); trackPane.setDividerSize(0); trackPane.setPreferredSize(drawDimensions); trackPane.setResizeWeight(0.0); trackPane.setContinuousLayout(true); trackPane.setVisible(false); varpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, trackPane, drawScroll); varpane.setUI(new BasicSplitPaneUI() { public BasicSplitPaneDivider createDefaultDivider() { return new BasicSplitPaneDivider(this) { private static final long serialVersionUID = 1L; public void setBorder(Border b) { } @Override public void paint(Graphics g) { g.setColor(Color.lightGray); g.fillRect(0, 0, getSize().width, getSize().height); super.paint(g); } }; } }); varpane.setBorder(null); varpane.setDividerSize(0); varpane.setPreferredSize(drawDimensions); varpane.setResizeWeight(0.0); varpane.setContinuousLayout(true); bedScroll.setVisible(false); controlScroll.setVisible(false); chrompan = new JPanel() { private static final long serialVersionUID = 1L; protected void paintComponent(Graphics g) { super.paintComponent(g); g.setColor(Draw.sidecolor); g.fillRect(0, 0, this.getWidth(), this.getHeight()); g.setColor(Color.gray); g.fillRect(0, 0, 3, this.getHeight()); g.setColor(Color.lightGray); g.fillRect(2, 0, 2, this.getHeight()); } }; chrompan.setLayout(new GridBagLayout()); GridBagConstraints gb = new GridBagConstraints(); gb.anchor = GridBagConstraints.NORTHWEST; gb.insets = new Insets(2, 10, 2, 2); gb.gridx = 0; gb.gridy = 0; gb.gridwidth = 1; gb.fill = GridBagConstraints.HORIZONTAL; refDropdown.setBackground(Color.white); refDropdown.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.lightGray)); refDropdown.setBorder(BorderFactory.createCompoundBorder(refDropdown.getBorder(), BorderFactory.createEmptyBorder(0, 0, 0, 0))); geneDropdown.setBackground(Color.white); geneDropdown.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.lightGray)); geneDropdown.setBorder(BorderFactory.createCompoundBorder(geneDropdown.getBorder(), BorderFactory.createEmptyBorder(0, 0, 0, 0))); geneDropdown.addActionListener(annoDropActionListener); JLabel refLabel = new JLabel("Reference genome:"); JLabel geneLabel = new JLabel("Gene annotation:"); chromLabel.setName("header"); chrompan.add(chromLabel, gb); gb.gridy++; chrompan.add(new JSeparator(), gb); gb.gridy++; gb.insets = new Insets(0, 10, 0, 2); chrompan.add(refLabel, gb); gb.gridy++; chrompan.add(refDropdown, gb); gb.gridy++; chrompan.add(geneLabel, gb); gb.gridy++; chrompan.add(geneDropdown, gb); gb.gridy++; gb.insets = new Insets(20, 10, 0, 2); JLabel memory = new JLabel("Memory usage:"); memory.setName("header"); chrompan.add(memory, gb); gb.insets = new Insets(0, 10, 0, 2); gb.gridy++; chrompan.add(memLabel, gb); gb.weightx = 1; gb.weighty = 1; gb.gridwidth = GridBagConstraints.REMAINDER; chrompan.add(new JLabel(), gb); chrompan.setMinimumSize(new Dimension(1, 1)); chrompan.addComponentListener(this); upPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, chrompan, chromScroll); drawScroll.addComponentListener(this); //upPanel.setBorder(BorderFactory.createLoweredBevelBorder()); upPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.white)); upPanel.setDividerLocation(Main.sidebarWidth - 2); chrompan.setBackground(Draw.sidecolor); BasicSplitPaneUI chromPaneUI = (BasicSplitPaneUI) upPanel.getUI(); chromPaneDivider = chromPaneUI.getDivider(); chromPaneDivider.addMouseListener(this); upPanel.setDividerSize(3); upPanel.setUI(new BasicSplitPaneUI() { public BasicSplitPaneDivider createDefaultDivider() { return new BasicSplitPaneDivider(this) { private static final long serialVersionUID = 1L; public void setBorder(Border b) { } @Override public void paint(Graphics g) { g.setColor(Color.lightGray); g.fillRect(0, 0, getSize().width, getSize().height); super.paint(g); } }; } }); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, upPanel, varpane); splitPane.setUI(new BasicSplitPaneUI() { public BasicSplitPaneDivider createDefaultDivider() { return new BasicSplitPaneDivider(this) { private static final long serialVersionUID = 1L; public void setBorder(Border b) { } @Override public void paint(Graphics g) { g.setColor(Color.lightGray); g.fillRect(0, 0, getSize().width, getSize().height); super.paint(g); } }; } }); BasicSplitPaneUI basicSplitPaneUI = (BasicSplitPaneUI) splitPane.getUI(); splitPaneDivider = basicSplitPaneUI.getDivider(); // splitPaneDivider.addMouseListener(this); basicSplitPaneUI = (BasicSplitPaneUI) trackPane.getUI(); trackPaneDivider = basicSplitPaneUI.getDivider(); // trackPaneDivider.addMouseListener(this); BasicSplitPaneUI splitPaneUI = (BasicSplitPaneUI) varpane.getUI(); varPaneDivider = splitPaneUI.getDivider(); // varPaneDivider.addMouseListener(this); splitPane.setDividerSize(3); splitPane.setPreferredSize(drawDimensions); splitPane.setContinuousLayout(true); panel.add(splitPane, c); add(panel, c); openvcfs.addActionListener(this); openbams.addActionListener(this); addtracks.addActionListener(this); addcontrols.addActionListener(this); openProject.addActionListener(this); saveProject.addActionListener(this); saveProjectAs.addActionListener(this); dosomething.addActionListener(this); clear.addActionListener(this); // drawScroll.getVerticalScrollBar().addMouseMotionListener(this); drawScroll.getVerticalScrollBar().addMouseListener(this); drawScroll.getVerticalScrollBar().addMouseMotionListener(this); drawScroll.getVerticalScrollBar().addMouseWheelListener(new MouseWheelListener() { @Override public void mouseWheelMoved(MouseWheelEvent e) { Draw.setGlasspane(true); if (e.getWheelRotation() < 0) { if (drawCanvas.drawVariables.visiblestart > 0) { drawCanvas.drawVariables.visiblestart--; } Draw.setScrollbar((int) (drawCanvas.drawVariables.visiblestart * drawCanvas.drawVariables.sampleHeight)); } else { if (drawCanvas.drawVariables.visiblestart + drawCanvas.drawVariables.visiblesamples < Main.samples) { drawCanvas.drawVariables.visiblestart++; } Draw.setScrollbar((int) (drawCanvas.drawVariables.visiblestart * drawCanvas.drawVariables.sampleHeight)); } } } ); drawScroll.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener() { @Override public void adjustmentValueChanged(AdjustmentEvent event) { //System.out.println(drawCanvas.drawVariables.visiblestart +" " +(short)(Main.drawScroll.getVerticalScrollBar().getValue()/drawCanvas.drawVariables.sampleHeight)); if (drawCanvas.drawVariables.visiblestart != (short) (Main.drawScroll.getVerticalScrollBar() .getValue() / drawCanvas.drawVariables.sampleHeight)) { if (!drawCanvas.sidebar) { drawCanvas.drawVariables.visiblestart = (short) (Main.drawScroll.getVerticalScrollBar() .getValue() / drawCanvas.drawVariables.sampleHeight); } if (drawCanvas.splits.size() > 1) { for (int i = 0; i < drawCanvas.splits.size(); i++) { drawCanvas.splits.get(i).updateReads = true; } } else { Draw.updateReads = true; Draw.updatevars = true; } Draw.updatevars = true; Main.drawCanvas.repaint(); } } }); zoomout.addActionListener(this); FileRead.head = new VarNode(0, (byte) 0, "N", (short) 0, (short) 0, false, (float) 0, (float) 0, null, null, new Sample("", (short) 1, null), null, null); drawCanvas.current = FileRead.head; frame.addComponentListener(this); frame.addMouseListener(this); frame.setGlassPane(glassPane); glassPane.setOpaque(false); glassPane.setVisible(false); positionField.setText("chr1:1-" + MethodLibrary.formatNumber(drawCanvas.splits.get(0).chromEnd)); positionField.setToolTipText("Current chromosomal region"); widthLabel.setText(MethodLibrary.formatNumber(drawCanvas.splits.get(0).chromEnd) + "bp"); widthLabel.setToolTipText("Current region width in base pairs"); } catch (Exception e) { e.printStackTrace(); } }
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./* w ww .j av a2 s .com*/ */ @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(); }