Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.cads.testestimation.userinterface; import edu.cads.testestimation.database.hibernate.DAO.factory.*; import edu.cads.testestimation.database.hibernate.logic.*; import edu.cads.testestimation.database.hibernate.util.HibernateUtil; import java.awt.print.PageFormat; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; import java.io.File; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; import javax.print.attribute.HashPrintRequestAttributeSet; import javax.print.attribute.PrintRequestAttributeSet; import javax.swing.*; import javax.swing.text.DefaultFormatter; import javax.swing.text.JTextComponent; import javax.swing.text.MaskFormatter; import oracle.jdbc.OracleTypes; import org.hibernate.Session; import org.hibernate.jdbc.Work; /** * * @author Ari100tell */ public class TestEstimationFrame extends javax.swing.JFrame { private String directoryName = System.getProperty("user.dir"); private UnitTestingResults unitTestingResultsCurrent = null; private SystemTestingResults systemTestingResults = null; private Integer internalResultsNumber; private Integer introducingResultNumber; private Integer implementationPlanNumber; private int systemCount; private int projectIdCurrent = 1; /** * Creates new form TestEstimationFrame */ public TestEstimationFrame() { initComponents(); } /** * 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. */ @SuppressWarnings({ "unchecked", "null" }) // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jDateChooser1 = new com.toedter.calendar.JDateChooser(); jDateChooser2 = new com.toedter.calendar.JDateChooser(); jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem(); jLabelStatusBar = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jPanel6 = new javax.swing.JPanel(); jTabbedPaneDate = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); jspinnerNumberResult = new javax.swing.JSpinner(new SpinnerNumberModel(0, 0, 100000, 1)); jLabel9 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jTextFieldSystemTotalBugs = new javax.swing.JTextField(); jLabel12 = new javax.swing.JLabel(); jTextFieldSystemTotalBugFixes = new javax.swing.JTextField(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); MaskFormatter formatter3 = null; try { formatter3 = new MaskFormatter("##.#%"); formatter3.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldEvaluationUI = new javax.swing.JFormattedTextField(formatter3); MaskFormatter formatter2 = null; try { formatter2 = new MaskFormatter("##.#%"); formatter2.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldExerciseTestingEvaluation = new javax.swing.JFormattedTextField(formatter2); MaskFormatter formatter5 = null; try { formatter5 = new MaskFormatter("##.#%"); formatter5.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldEvaluationSafety = new javax.swing.JFormattedTextField(formatter5); MaskFormatter formatter4 = null; try { formatter4 = new MaskFormatter("##.#%"); formatter4.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldEvaluationCompatibility = new javax.swing.JFormattedTextField(formatter4); MaskFormatter formatter1 = null; try { formatter1 = new MaskFormatter("##.#%"); formatter1.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldSystemEvaluationUsability = new javax.swing.JFormattedTextField(formatter1); MaskFormatter formatter6 = null; try { formatter6 = new MaskFormatter("##.#%"); formatter6.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldEvaluationPerformance = new javax.swing.JFormattedTextField(formatter6); jLabel28 = new javax.swing.JLabel(); jDateChooser6 = new com.toedter.calendar.JDateChooser(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jTextFieldUnitTotalBugs = new javax.swing.JTextField(); jTextFieldMockObjectNumber = new javax.swing.JTextField(); jTextFieldUnitTotalBugFixes = new javax.swing.JTextField(); jSpinnerModalResultNumber = new javax.swing.JSpinner(new SpinnerNumberModel(0, 0, 100000, 1)); MaskFormatter formatter10 = null; try { formatter10 = new MaskFormatter("##.#%"); formatter10.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldEvaluationRegressionTesting = new javax.swing.JFormattedTextField(formatter10); MaskFormatter formatter11 = null; try { formatter11 = new MaskFormatter("##.#%"); formatter11.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldCoverRatioUnitTests = new javax.swing.JFormattedTextField(formatter11); jDateChooser4 = new com.toedter.calendar.JDateChooser(); jLabel36 = new javax.swing.JLabel(); jTextFieldReportedBugsNumber = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); jLabel27 = new javax.swing.JLabel(); jTextFieldImplementationPlanName = new javax.swing.JTextField(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jLabel32 = new javax.swing.JLabel(); jTextFieldImplementationPlanExpectedIncome = new javax.swing.JTextField(); jLabel33 = new javax.swing.JLabel(); jTextFieldImplementationPlanTotalBugs = new javax.swing.JTextField(); jLabel34 = new javax.swing.JLabel(); MaskFormatter formatter7 = null; try { formatter7 = new MaskFormatter("v. ##.##"); formatter7.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldImplementationPlanNumber = new javax.swing.JFormattedTextField(formatter7); MaskFormatter formatter9 = null; try { formatter9 = new MaskFormatter("##.#%"); formatter9.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldTotalUserEstimation = new javax.swing.JFormattedTextField(formatter9); jDateChooserImplementationDate = new com.toedter.calendar.JDateChooser(); jLabel37 = new javax.swing.JLabel(); MaskFormatter formatterStability = null; try { formatterStability = new MaskFormatter("##.#%"); formatterStability.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldImplementationPlanStability = new javax.swing.JFormattedTextField(formatterStability); jPanel3 = new javax.swing.JPanel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); jTextFieldIntroducingResultsTotalBugs = new javax.swing.JTextField(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); jTextFieldPreliminaryIncome = new javax.swing.JTextField(); jSpinner1 = new javax.swing.JSpinner(new SpinnerNumberModel(0, 0, 1000, 1)); MaskFormatter formatter13 = null; try { formatter13 = new MaskFormatter("##.#%"); formatter13.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldIntroducingResultsStability = new javax.swing.JFormattedTextField(formatter13); MaskFormatter formatter14 = null; try { formatter14 = new MaskFormatter("##.#%"); formatter14.setPlaceholderCharacter('0'); } catch (java.text.ParseException exc) { // ?? ? } jFormattedTextFieldIntroducingResultsTotalUserEstimation = new javax.swing.JFormattedTextField(formatter14); jDateChooser5 = new com.toedter.calendar.JDateChooser(); jTextFieldFundsSpentOnImplementation = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jPanel7 = new javax.swing.JPanel(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel4 = new javax.swing.JPanel(); jLabel10 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); jLabelSuccessProbability = new javax.swing.JLabel(); jLabelExpectedIncome = new javax.swing.JLabel(); jLabel35 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jTextFieldEstimationDate = new javax.swing.JTextField(); jTextFieldExpectedIncome = new javax.swing.JTextField(); jTextField12 = new javax.swing.JTextField(); jFormattedTextFieldSuccessProbability = new javax.swing.JFormattedTextField(); jProgressBar1 = new javax.swing.JProgressBar(0, 0, 100); filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(1, 0), new java.awt.Dimension(1, 0), new java.awt.Dimension(1, 32767)); jLabel29 = new javax.swing.JLabel(); jLabel38 = new javax.swing.JLabel(); jComboBoxSystem = new javax.swing.JComboBox(); jComboBoxProject = new javax.swing.JComboBox(); jComboBoxBranch = new javax.swing.JComboBox(); jMenuBar1 = new javax.swing.JMenuBar(); jMenuFile = new javax.swing.JMenu(); jMenuItemSave = new javax.swing.JMenuItem(); jMenuItemSaveAs = new javax.swing.JMenuItem(); jMenuItemSaveAll = new javax.swing.JMenuItem(); jSeparator1 = new javax.swing.JPopupMenu.Separator(); jMenuItemOpen = new javax.swing.JMenuItem(); jMenuOpenLast = new javax.swing.JMenu(); jSeparator5 = new javax.swing.JPopupMenu.Separator(); jMenuItemPrint = new javax.swing.JMenuItem(); jMenuItemSavingOptions = new javax.swing.JMenuItem(); jSeparator4 = new javax.swing.JPopupMenu.Separator(); jMenuItemExit = new javax.swing.JMenuItem(); jMenuView = new javax.swing.JMenu(); jMenuWindow = new javax.swing.JMenu(); jCheckBoxMenuItemStatusBar = new javax.swing.JCheckBoxMenuItem(); jSeparator11 = new javax.swing.JPopupMenu.Separator(); jCheckBoxMenuItemWorkData = new javax.swing.JCheckBoxMenuItem(); jCheckBoxMenuItemEstimationResults = new javax.swing.JCheckBoxMenuItem(); jMenuStyle = new javax.swing.JMenu(); jRadioButtonMenuItemClassic = new javax.swing.JRadioButtonMenuItem(); jRadioButtonMenuItemMetallic = new javax.swing.JRadioButtonMenuItem(); jRadioButtonMenuItemNimbus = new javax.swing.JRadioButtonMenuItem(); jRadioButtonMenuItemMotif = new javax.swing.JRadioButtonMenuItem(); jRadioButtonMenuItemWindows = new javax.swing.JRadioButtonMenuItem(); jSeparator6 = new javax.swing.JPopupMenu.Separator(); jMenuItemResetOptions = new javax.swing.JMenuItem(); jMenuData = new javax.swing.JMenu(); jMenu23 = new javax.swing.JMenu(); jMenuItem3 = new javax.swing.JMenuItem(); jMenuItem5 = new javax.swing.JMenuItem(); jMenuItem4 = new javax.swing.JMenuItem(); jSeparator7 = new javax.swing.JPopupMenu.Separator(); jMenuItem6 = new javax.swing.JMenuItem(); jMenu22 = new javax.swing.JMenu(); jMenuItem22 = new javax.swing.JMenuItem(); jMenuItem17 = new javax.swing.JMenuItem(); jSeparator8 = new javax.swing.JPopupMenu.Separator(); jMenuItem20 = new javax.swing.JMenuItem(); jSeparator9 = new javax.swing.JPopupMenu.Separator(); jMenuItem1 = new javax.swing.JMenuItem(); jMenu17 = new javax.swing.JMenu(); jMenu29 = new javax.swing.JMenu(); jMenuItem23 = new javax.swing.JMenuItem(); jMenuItem7 = new javax.swing.JMenuItem(); jMenuItem24 = new javax.swing.JMenuItem(); jMenu28 = new javax.swing.JMenu(); jMenuItemViewSystemTestingResults = new javax.swing.JMenuItem(); jMenuItem28 = new javax.swing.JMenuItem(); jMenuItem26 = new javax.swing.JMenuItem(); jSeparator13 = new javax.swing.JPopupMenu.Separator(); jMenuItem8 = new javax.swing.JMenuItem(); jSeparator14 = new javax.swing.JPopupMenu.Separator(); jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem(); jMenuItemViewOptions = new javax.swing.JMenuItem(); jMenuResult = new javax.swing.JMenu(); jMenuItemCalculate = new javax.swing.JMenuItem(); jMenuItemEstimate = new javax.swing.JMenuItem(); jSeparator10 = new javax.swing.JPopupMenu.Separator(); jMenuItem2 = new javax.swing.JMenuItem(); jSeparator12 = new javax.swing.JPopupMenu.Separator(); jMenuItem10 = new javax.swing.JMenuItem(); jMenuItemClear = new javax.swing.JMenuItem(); jMenuHelp = new javax.swing.JMenu(); jMenuItemHelp = new javax.swing.JMenuItem(); jMenuItemReportBug = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JPopupMenu.Separator(); jMenuItemCheckUpdating = new javax.swing.JMenuItem(); jMenuItemDocumentation = new javax.swing.JMenuItem(); jSeparator2 = new javax.swing.JPopupMenu.Separator(); jMenuItemAboutProgram = new javax.swing.JMenuItem(); jRadioButtonMenuItem1.setSelected(true); jRadioButtonMenuItem1.setText("jRadioButtonMenuItem1"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabelStatusBar.setText("? ?"); jLabelStatusBar.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel2.setText("? ? ??"); jPanel6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jspinnerNumberResult .setToolTipText(" ? [0;100000]"); JSpinner.NumberEditor jsEditor = (JSpinner.NumberEditor) jspinnerNumberResult.getEditor(); DefaultFormatter formatter = (DefaultFormatter) jsEditor.getTextField().getFormatter(); formatter.setAllowsInvalid(false); jspinnerNumberResult.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jspinnerNumberResult.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jspinnerNumberResultStateChanged(evt); } }); jspinnerNumberResult.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jspinnerNumberResultKeyPressed(evt); } }); jLabel9.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel9.setText("? ?? "); jLabel11.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel11.setText(" ? "); JTextFieldFilter jTextFieldFilter = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter.setLimitLength(5); jTextFieldSystemTotalBugs.setDocument(jTextFieldFilter); jTextFieldSystemTotalBugs.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel12.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel12.setText("? "); JTextFieldFilter jTextFieldFilter1 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter1.setLimitLength(5); jTextFieldSystemTotalBugFixes.setDocument(jTextFieldFilter1); jTextFieldSystemTotalBugFixes.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel13.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel13.setText(" "); jLabel14.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel14.setText("? ??"); jLabel15.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel15.setText(" UI"); jLabel16.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel16.setText(" ???"); jLabel17.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel17.setText(" "); jLabel18.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel18.setText(" ?"); jFormattedTextFieldEvaluationUI.setText("jFormattedTextField1"); jFormattedTextFieldEvaluationUI.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldExerciseTestingEvaluation.setText("jFormattedTextField1"); jFormattedTextFieldExerciseTestingEvaluation.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldEvaluationSafety.setText("jFormattedTextField1"); jFormattedTextFieldEvaluationSafety.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldEvaluationCompatibility.setText("jFormattedTextField1"); jFormattedTextFieldEvaluationCompatibility.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldSystemEvaluationUsability.setText("jFormattedTextField1"); jFormattedTextFieldSystemEvaluationUsability.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldEvaluationPerformance.setText("jFormattedTextField1"); jFormattedTextFieldEvaluationPerformance.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel28.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel28.setText(" ? ??"); jDateChooser6.getDateEditor().setEnabled(false); jDateChooser6.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addGap(76, 76, 76) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 12, Short.MAX_VALUE))) .addGap(5, 5, 5) .addGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jFormattedTextFieldEvaluationPerformance, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jFormattedTextFieldEvaluationSafety) .addComponent(jFormattedTextFieldEvaluationCompatibility) .addComponent(jFormattedTextFieldEvaluationUI) .addComponent(jFormattedTextFieldExerciseTestingEvaluation) .addComponent(jTextFieldSystemTotalBugFixes).addComponent(jspinnerNumberResult) .addComponent(jTextFieldSystemTotalBugs) .addComponent(jFormattedTextFieldSystemEvaluationUsability).addComponent( jDateChooser6, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)) .addGap(82, 82, 82))); jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addGap(20, 20, 20) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(jspinnerNumberResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11).addComponent(jTextFieldSystemTotalBugs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jTextFieldSystemTotalBugFixes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13).addComponent(jFormattedTextFieldSystemEvaluationUsability, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel14).addComponent(jFormattedTextFieldExerciseTestingEvaluation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel15).addComponent(jFormattedTextFieldEvaluationUI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextFieldEvaluationCompatibility, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17).addComponent(jFormattedTextFieldEvaluationSafety, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel18).addComponent(jFormattedTextFieldEvaluationPerformance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jDateChooser6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel28)) .addContainerGap(61, Short.MAX_VALUE))); jTabbedPaneDate.addTab(" ?? ??", jPanel5); jPanel1.setPreferredSize(new java.awt.Dimension(248, 391)); jLabel1.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel1.setText("? ?? "); jLabel3.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel3.setText(" ? "); jLabel4.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel4.setText(" ? ??"); jLabel5.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel5.setText("? -'"); jLabel6.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel6.setText("? ?"); jLabel7.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel7.setText("? "); jLabel8.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel8.setText(" ? ??"); JTextFieldFilter jTextFieldFilter3 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter3.setLimitLength(5); jTextFieldUnitTotalBugs.setDocument(jTextFieldFilter3); jTextFieldUnitTotalBugs.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N JTextFieldFilter jTextFieldFilter8 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter8.setLimitLength(4); jTextFieldMockObjectNumber.setDocument(jTextFieldFilter8); jTextFieldMockObjectNumber.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N JTextFieldFilter jTextFieldFilter2 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter2.setLimitLength(9); jTextFieldUnitTotalBugFixes.setDocument(jTextFieldFilter2); jTextFieldUnitTotalBugFixes.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N JSpinner.NumberEditor jsEditorModalResult = (JSpinner.NumberEditor) jSpinnerModalResultNumber.getEditor(); DefaultFormatter formatterModalResult = (DefaultFormatter) jsEditorModalResult.getTextField() .getFormatter(); formatterModalResult.setAllowsInvalid(false); jSpinnerModalResultNumber.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jSpinnerModalResultNumber.setEditor(new javax.swing.JSpinner.NumberEditor(jSpinnerModalResultNumber, "")); jSpinnerModalResultNumber.setRequestFocusEnabled(false); jSpinnerModalResultNumber.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinnerModalResultNumberStateChanged(evt); } }); jSpinnerModalResultNumber.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jSpinnerModalResultNumberKeyPressed(evt); } }); jFormattedTextFieldEvaluationRegressionTesting.setText("jFormattedTextField9"); jFormattedTextFieldEvaluationRegressionTesting.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldEvaluationRegressionTesting.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jFormattedTextFieldEvaluationRegressionTestingActionPerformed(evt); } }); jFormattedTextFieldCoverRatioUnitTests.setText("jFormattedTextField10"); jFormattedTextFieldCoverRatioUnitTests.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jDateChooser4.getDateEditor().setEnabled(false); jDateChooser4.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel36.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel36.setText("? "); JTextFieldFilter jTextFieldFilte = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter2.setLimitLength(9); jTextFieldReportedBugsNumber.setDocument(jTextFieldFilte); jTextFieldReportedBugsNumber.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(68, 68, 68) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3).addComponent(jLabel4).addComponent(jLabel5) .addComponent(jLabel6).addComponent(jLabel7).addComponent(jLabel8) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel36)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextFieldReportedBugsNumber) .addComponent(jTextFieldUnitTotalBugFixes, javax.swing.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE) .addComponent(jTextFieldMockObjectNumber) .addComponent(jFormattedTextFieldEvaluationRegressionTesting, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jFormattedTextFieldCoverRatioUnitTests, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jSpinnerModalResultNumber, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jDateChooser4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextFieldUnitTotalBugs)) .addContainerGap(96, Short.MAX_VALUE))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap(55, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1).addComponent(jSpinnerModalResultNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3).addComponent(jTextFieldUnitTotalBugs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4).addComponent(jFormattedTextFieldEvaluationRegressionTesting, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5).addComponent(jTextFieldMockObjectNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6).addComponent(jFormattedTextFieldCoverRatioUnitTests, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7).addComponent(jTextFieldUnitTotalBugFixes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel36).addComponent(jTextFieldReportedBugsNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(8, 8, 8) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jDateChooser4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addContainerGap(91, Short.MAX_VALUE))); jTabbedPaneDate.addTab(" ??", jPanel1); jLabel27.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel27.setText("?"); jTextFieldImplementationPlanName .setDocument(new JTextFieldFilter(JTextFieldFilter.ALPHA_NUMERIC + JTextFieldFilter.SPASE)); jTextFieldImplementationPlanName.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel30.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel30.setText("? ?"); jLabel31.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel31.setText(" ?"); jLabel32.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel32.setText(" "); JTextFieldFilter jTextFieldFilter4 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter4.setLimitLength(9); jTextFieldImplementationPlanExpectedIncome.setDocument(jTextFieldFilter4); jTextFieldImplementationPlanExpectedIncome.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel33.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel33.setText(" ? "); JTextFieldFilter jTextFieldFilter6 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter6.setLimitLength(9); jTextFieldImplementationPlanTotalBugs.setDocument(jTextFieldFilter6); jTextFieldImplementationPlanTotalBugs.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel34.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel34.setText(" ?"); jFormattedTextFieldImplementationPlanNumber.setText("jFormattedTextField7"); jFormattedTextFieldImplementationPlanNumber.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldImplementationPlanNumber.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jFormattedTextFieldImplementationPlanNumberKeyPressed(evt); } }); jFormattedTextFieldTotalUserEstimation.setText("jFormattedTextField8"); jFormattedTextFieldTotalUserEstimation.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jDateChooserImplementationDate.getDateEditor().setEnabled(false); jDateChooserImplementationDate.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel37.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel37.setText(" ??"); jFormattedTextFieldImplementationPlanStability.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addGap(68, 68, 68).addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel37, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel30, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel32, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel33, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel34, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE) .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jFormattedTextFieldImplementationPlanNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE) .addComponent(jTextFieldImplementationPlanName) .addComponent(jDateChooserImplementationDate, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextFieldImplementationPlanExpectedIncome, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextFieldImplementationPlanTotalBugs) .addComponent(jFormattedTextFieldTotalUserEstimation, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE) .addComponent(jFormattedTextFieldImplementationPlanStability, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)) .addContainerGap(86, Short.MAX_VALUE))); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap(67, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel27).addComponent(jTextFieldImplementationPlanName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel30).addComponent(jFormattedTextFieldImplementationPlanNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel32).addComponent(jTextFieldImplementationPlanExpectedIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(9, 9, 9) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel37).addComponent(jFormattedTextFieldImplementationPlanStability, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextFieldImplementationPlanTotalBugs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel33)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextFieldTotalUserEstimation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel34)) .addGap(6, 6, 6) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jDateChooserImplementationDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel31)) .addContainerGap(107, Short.MAX_VALUE))); jTabbedPaneDate.addTab(" ?", jPanel2); jLabel19.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel19.setText("? ?"); jLabel20.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel20.setText(" ?? "); jLabel21.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel21.setText(" ? "); JTextFieldFilter jTextFieldFilter9 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter9.setLimitLength(9); jTextFieldIntroducingResultsTotalBugs.setDocument(jTextFieldFilter9); jTextFieldIntroducingResultsTotalBugs.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel23.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel23.setText(" ?"); jLabel24.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel24.setText(" ?"); jLabel25.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel25.setText(" ??"); jLabel26.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel26.setText(" "); JTextFieldFilter jTextFieldFilter5 = new JTextFieldFilter(JTextFieldFilter.NUMERIC); jTextFieldFilter5.setLimitLength(9); jTextFieldPreliminaryIncome.setDocument(jTextFieldFilter5); jTextFieldPreliminaryIncome.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N JSpinner.NumberEditor jsEditorIntroductionData = (JSpinner.NumberEditor) jSpinner1.getEditor(); DefaultFormatter formatterIntroductionData = (DefaultFormatter) jsEditorIntroductionData.getTextField() .getFormatter(); formatterIntroductionData.setAllowsInvalid(false); jSpinner1.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jSpinner1.setEditor(new javax.swing.JSpinner.NumberEditor(jSpinner1, "")); jSpinner1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinner1StateChanged(evt); } }); jSpinner1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jSpinner1KeyPressed(evt); } }); jFormattedTextFieldIntroducingResultsStability.setText("jFormattedTextField12"); jFormattedTextFieldIntroducingResultsStability.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jFormattedTextFieldIntroducingResultsTotalUserEstimation.setText("jFormattedTextField11"); jFormattedTextFieldIntroducingResultsTotalUserEstimation.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jDateChooser5.getDateEditor().setEnabled(false); jDateChooser5.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N JTextFieldFilter jTextFieldFilterFundsSpentOnImplementation = new JTextFieldFilter( JTextFieldFilter.NUMERIC); jTextFieldFilterFundsSpentOnImplementation.setLimitLength(9); jTextFieldIntroducingResultsTotalBugs.setDocument(jTextFieldFilterFundsSpentOnImplementation); jTextFieldFundsSpentOnImplementation.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jButton1.setText("jButton1"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel3Layout.createSequentialGroup().addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jDateChooser5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jFormattedTextFieldIntroducingResultsStability, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE) .addComponent(jFormattedTextFieldIntroducingResultsTotalUserEstimation, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextFieldIntroducingResultsTotalBugs, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextFieldPreliminaryIncome) .addComponent(jTextFieldFundsSpentOnImplementation, javax.swing.GroupLayout.Alignment.LEADING))) .addGroup(jPanel3Layout.createSequentialGroup().addGap(68, 289, Short.MAX_VALUE) .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(93, Short.MAX_VALUE)) .addGroup(jPanel3Layout.createSequentialGroup().addGap(202, 202, 202) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap(54, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel19).addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel21).addComponent(jTextFieldIntroducingResultsTotalBugs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel23) .addComponent(jFormattedTextFieldIntroducingResultsTotalUserEstimation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel24).addComponent(jTextFieldFundsSpentOnImplementation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(14, 14, 14) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel25).addComponent(jFormattedTextFieldIntroducingResultsStability, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel26).addComponent(jTextFieldPreliminaryIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel20).addComponent(jDateChooser5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 67, Short.MAX_VALUE) .addComponent(jButton1).addGap(32, 32, 32))); jTabbedPaneDate.addTab(" ?", jPanel3); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout .setHorizontalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap() .addComponent(jTabbedPaneDate).addContainerGap())); jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPaneDate, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)); jPanel7.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jLabel10.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel10.setText("?"); jLabel22.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel22.setText(" ?"); jLabelSuccessProbability.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabelSuccessProbability .setText("<html>? ? <br>\n?</html>"); jLabelExpectedIncome.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabelExpectedIncome.setText(" "); jLabel35.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N jLabel35.setText(" ?"); jTextField2.setEditable(false); jTextFieldEstimationDate.setEditable(false); jTextFieldExpectedIncome.setEditable(false); jTextField12.setEditable(false); jFormattedTextFieldSuccessProbability.setEnabled(false); jFormattedTextFieldSuccessProbability.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jFormattedTextFieldSuccessProbabilityActionPerformed(evt); } }); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addGap(68, 68, 68).addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelSuccessProbability, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel22).addComponent(jLabel10).addComponent(jLabelExpectedIncome) .addComponent(jLabel35)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField2).addComponent(jTextField12) .addComponent(jTextFieldExpectedIncome).addComponent(jTextFieldEstimationDate) .addComponent(jFormattedTextFieldSuccessProbability, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)) .addContainerGap(46, Short.MAX_VALUE))); jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap(46, Short.MAX_VALUE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel10).addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel22).addComponent(jTextFieldEstimationDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelSuccessProbability, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jFormattedTextFieldSuccessProbability, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelExpectedIncome).addComponent(jTextFieldExpectedIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel35).addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(151, Short.MAX_VALUE))); jTabbedPane2.addTab(" ?", jPanel4); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup(jPanel7Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup().addContainerGap() .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 444, Short.MAX_VALUE) .addContainerGap())); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel7Layout .createSequentialGroup().addContainerGap().addComponent(jTabbedPane2).addContainerGap())); jProgressBar1.setValue(10); jLabel29.setText("? "); jLabel38.setText("? "); jLabel38.setVisible(false); jComboBoxSystem.setModel(loadDataAboutSystem()); jComboBoxProject.setModel(loadDataAboutProject()); jComboBoxBranch.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jComboBoxBranch.setVisible(false); jMenuFile.setText(""); jMenuItemSave.setText(""); jMenuItemSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveActionPerformed(evt); } }); jMenuFile.add(jMenuItemSave); jMenuItemSaveAs.setText(" ?..."); jMenuItemSaveAs.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveAsActionPerformed(evt); } }); jMenuFile.add(jMenuItemSaveAs); jMenuItemSaveAll.setText(" ?"); jMenuFile.add(jMenuItemSaveAll); jMenuFile.add(jSeparator1); jMenuItemOpen.setText(""); jMenuItemOpen.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemOpenActionPerformed(evt); } }); jMenuFile.add(jMenuItemOpen); jMenuOpenLast.setText(" ?"); jMenuFile.add(jMenuOpenLast); jMenuFile.add(jSeparator5); jMenuItemPrint.setText(""); jMenuItemPrint.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPrintActionPerformed(evt); } }); jMenuFile.add(jMenuItemPrint); jMenuItemSavingOptions.setText(" ?"); jMenuItemSavingOptions.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSavingOptionsActionPerformed(evt); } }); jMenuFile.add(jMenuItemSavingOptions); jMenuFile.add(jSeparator4); jMenuItemExit.setText(""); jMenuItemExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemExitActionPerformed(evt); } }); jMenuFile.add(jMenuItemExit); jMenuBar1.add(jMenuFile); jMenuView.setText("?"); jMenuWindow.setText(""); jCheckBoxMenuItemStatusBar.setSelected(true); jCheckBoxMenuItemStatusBar.setText("? ?"); jCheckBoxMenuItemStatusBar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxMenuItemStatusBarActionPerformed(evt); } }); jMenuWindow.add(jCheckBoxMenuItemStatusBar); jMenuWindow.add(jSeparator11); jCheckBoxMenuItemWorkData.setSelected(true); jCheckBoxMenuItemWorkData.setText(" "); jCheckBoxMenuItemWorkData.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxMenuItemWorkDataActionPerformed(evt); } }); jMenuWindow.add(jCheckBoxMenuItemWorkData); jCheckBoxMenuItemEstimationResults.setSelected(true); jCheckBoxMenuItemEstimationResults.setText(" ??"); jCheckBoxMenuItemEstimationResults.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxMenuItemEstimationResultsActionPerformed(evt); } }); jMenuWindow.add(jCheckBoxMenuItemEstimationResults); jMenuView.add(jMenuWindow); jMenuStyle.setText(" ?"); jRadioButtonMenuItemClassic.setText("?"); jRadioButtonMenuItemClassic.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonMenuItemClassicActionPerformed(evt); } }); jMenuStyle.add(jRadioButtonMenuItemClassic); jRadioButtonMenuItemMetallic.setText(""); jRadioButtonMenuItemMetallic.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonMenuItemMetallicActionPerformed(evt); } }); jMenuStyle.add(jRadioButtonMenuItemMetallic); jRadioButtonMenuItemNimbus.setText("??"); jRadioButtonMenuItemNimbus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonMenuItemNimbusActionPerformed(evt); } }); jMenuStyle.add(jRadioButtonMenuItemNimbus); jRadioButtonMenuItemMotif.setText("Motif"); jRadioButtonMenuItemMotif.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonMenuItemMotifActionPerformed(evt); } }); jMenuStyle.add(jRadioButtonMenuItemMotif); jRadioButtonMenuItemWindows.setSelected(true); jRadioButtonMenuItemWindows.setText("Windows"); jRadioButtonMenuItemWindows.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioButtonMenuItemWindowsActionPerformed(evt); } }); jMenuStyle.add(jRadioButtonMenuItemWindows); jMenuView.add(jMenuStyle); jMenuView.add(jSeparator6); jMenuItemResetOptions.setText(" ? ?"); jMenuItemResetOptions.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemResetOptionsActionPerformed(evt); } }); jMenuView.add(jMenuItemResetOptions); jMenuBar1.add(jMenuView); jMenuData.setText(" "); jMenu23.setText(" ?"); jMenuItem3.setText("?"); jMenuItem3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem3ActionPerformed(evt); } }); jMenu23.add(jMenuItem3); jMenuItem5.setText(""); jMenuItem5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem5ActionPerformed(evt); } }); jMenu23.add(jMenuItem5); jMenuItem4.setText(" "); jMenuItem4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem4ActionPerformed(evt); } }); jMenu23.add(jMenuItem4); jMenu23.add(jSeparator7); jMenuItem6.setText("?"); jMenuItem6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem6ActionPerformed(evt); } }); jMenu23.add(jMenuItem6); jMenuData.add(jMenu23); jMenu22.setText(" ?"); jMenuItem22.setText(""); jMenuItem22.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem22ActionPerformed(evt); } }); jMenu22.add(jMenuItem22); jMenuItem17.setText(""); jMenu22.add(jMenuItem17); jMenu22.add(jSeparator8); jMenuItem20.setText("?"); jMenuItem20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem20ActionPerformed(evt); } }); jMenu22.add(jMenuItem20); jMenu22.add(jSeparator9); jMenuItem1.setText("?"); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); jMenu22.add(jMenuItem1); jMenuData.add(jMenu22); jMenu17.setText(" ??"); jMenu29.setText(" ??"); jMenuItem23.setText("?"); jMenuItem23.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem23ActionPerformed(evt); } }); jMenu29.add(jMenuItem23); jMenuItem7.setText("?"); jMenuItem7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem7ActionPerformed(evt); } }); jMenu29.add(jMenuItem7); jMenuItem24.setText("?"); jMenuItem24.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem24ActionPerformed(evt); } }); jMenu29.add(jMenuItem24); jMenu17.add(jMenu29); jMenu28.setText("? ??"); jMenuItemViewSystemTestingResults.setText("?"); jMenuItemViewSystemTestingResults.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemViewSystemTestingResultsActionPerformed(evt); } }); jMenu28.add(jMenuItemViewSystemTestingResults); jMenuItem28.setText("?"); jMenuItem28.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem28ActionPerformed(evt); } }); jMenu28.add(jMenuItem28); jMenuItem26.setText("?"); jMenuItem26.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem26ActionPerformed(evt); } }); jMenu28.add(jMenuItem26); jMenu17.add(jMenu28); jMenuData.add(jMenu17); jMenuData.add(jSeparator13); jMenuItem8.setText(" ?"); jMenuItem8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem8ActionPerformed(evt); } }); jMenuData.add(jMenuItem8); jMenuData.add(jSeparator14); jCheckBoxMenuItem1.setSelected(true); jCheckBoxMenuItem1.setText("? "); jCheckBoxMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxMenuItem1ActionPerformed(evt); } }); jMenuData.add(jCheckBoxMenuItem1); jMenuItemViewOptions.setText("??"); jMenuItemViewOptions.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemViewOptionsActionPerformed(evt); } }); jMenuData.add(jMenuItemViewOptions); jMenuBar1.add(jMenuData); jMenuResult.setText(""); jMenuItemCalculate.setText(""); jMenuItemCalculate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCalculateActionPerformed(evt); } }); jMenuResult.add(jMenuItemCalculate); jMenuItemEstimate.setText("?"); jMenuItemEstimate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemEstimateActionPerformed(evt); } }); jMenuResult.add(jMenuItemEstimate); jMenuResult.add(jSeparator10); jMenuItem2.setText("?"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenuResult.add(jMenuItem2); jMenuResult.add(jSeparator12); jMenuItem10.setText(""); jMenuItem10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem10ActionPerformed(evt); } }); jMenuResult.add(jMenuItem10); jMenuItemClear.setText("?"); jMenuItemClear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemClearActionPerformed(evt); } }); jMenuResult.add(jMenuItemClear); jMenuBar1.add(jMenuResult); jMenuHelp.setText(""); jMenuItemHelp.setText("? "); jMenuItemHelp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemHelpActionPerformed(evt); } }); jMenuHelp.add(jMenuItemHelp); jMenuItemReportBug.setText(" "); jMenuItemReportBug.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemReportBugActionPerformed(evt); } }); jMenuHelp.add(jMenuItemReportBug); jMenuHelp.add(jSeparator3); jMenuItemCheckUpdating.setText(" ?"); jMenuHelp.add(jMenuItemCheckUpdating); jMenuItemDocumentation.setText(" ?"); jMenuItemDocumentation.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDocumentationActionPerformed(evt); } }); jMenuHelp.add(jMenuItemDocumentation); jMenuHelp.add(jSeparator2); jMenuItemAboutProgram.setText(" "); jMenuItemAboutProgram.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemAboutProgramActionPerformed(evt); } }); jMenuHelp.add(jMenuItemAboutProgram); jMenuBar1.add(jMenuHelp); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addComponent(jLabelStatusBar, javax.swing.GroupLayout.PREFERRED_SIZE, 859, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup().addGap(78, 78, 78) .addComponent(filler2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(layout.createSequentialGroup().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jComboBoxSystem, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboBoxProject, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboBoxBranch, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addContainerGap().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2) .addComponent(jLabel29).addComponent(jLabel38) .addComponent(jComboBoxSystem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBoxProject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBoxBranch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(filler2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabelStatusBar)))); pack(); }// </editor-fold>//GEN-END:initComponents private void jMenuItemHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemHelpActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItemHelpActionPerformed private void jMenuItemReportBugActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemReportBugActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItemReportBugActionPerformed private void jMenuItemAboutProgramActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemAboutProgramActionPerformed AboutFrame aboutFrame = new AboutFrame(); aboutFrame.setVisible(true); }//GEN-LAST:event_jMenuItemAboutProgramActionPerformed private void jMenuItemDocumentationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemDocumentationActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItemDocumentationActionPerformed private void jMenuItemOpenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemOpenActionPerformed JFileChooser jFileChooser = new JFileChooser(directoryName); jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); jFileChooser.setMultiSelectionEnabled(true); jFileChooser.setAcceptAllFileFilterUsed(false); jFileChooser.showOpenDialog(null); File[] fileForChoose = jFileChooser.getSelectedFiles(); int i = 0; while (i < fileForChoose.length) { if (!fileForChoose[i].isFile() || !fileForChoose[i].canRead()) { JOptionPane.showMessageDialog(null, " " + fileForChoose[i].getName() + " ???? , " + " ? ? ? ?!", "", JOptionPane.ERROR_MESSAGE); return; } if (fileForChoose != null) { directoryName = fileForChoose[0].getParent() + "\\"; } jLabelStatusBar.setText(directoryName); i++; } // TODO add your handling code here: }//GEN-LAST:event_jMenuItemOpenActionPerformed private void jMenuItemPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemPrintActionPerformed try { String cn = UIManager.getSystemLookAndFeelClassName(); UIManager.setLookAndFeel(cn); // Use the native L&F } catch (Exception cnf) { } PrinterJob job = PrinterJob.getPrinterJob(); PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); PageFormat pf = job.pageDialog(aset); job.setPrintable(new PrintDialog(), pf); boolean ok = job.printDialog(aset); if (ok) { try { job.print(aset); } catch (PrinterException ex) { /* The job did not successfully complete */ } } System.exit(0); }//GEN-LAST:event_jMenuItemPrintActionPerformed private void jMenuItemSavingOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSavingOptionsActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItemSavingOptionsActionPerformed private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed ImplementationPlan implementationPlan = new ImplementationPlan(); if (("".equals(jTextFieldImplementationPlanName.getText())) || ("".equals(jFormattedTextFieldImplementationPlanNumber.getText())) || ("".equals(jTextFieldImplementationPlanExpectedIncome.getText())) || ("".equals(jFormattedTextFieldImplementationPlanStability.getText())) || ("".equals(jTextFieldImplementationPlanTotalBugs.getText())) || ("".equals(jFormattedTextFieldTotalUserEstimation.getText())) || ("".equals(((JTextField) jDateChooserImplementationDate.getDateEditor().getUiComponent()) .getText()))) { JOptionPane.showMessageDialog(null, "? ? ? ?", " ?", JOptionPane.ERROR_MESSAGE); return; } try { // implementationPlan.setImplementationPlanName(jTextFieldImplementationPlanName.getText()); implementationPlan.setImplementationPlanNumber(Integer .parseInt(conversionStringVersion(jFormattedTextFieldImplementationPlanNumber.getText()))); implementationPlan .setExpectedIncome(Integer.parseInt(jTextFieldImplementationPlanExpectedIncome.getText())); implementationPlan.setStability(Integer .parseInt(conversionStringPercent(jFormattedTextFieldImplementationPlanStability.getText()))); implementationPlan.setTotalBugs(Integer.parseInt(jTextFieldImplementationPlanTotalBugs.getText())); implementationPlan.setTotalUserEstimation( Integer.parseInt(conversionStringPercent(jFormattedTextFieldTotalUserEstimation.getText()))); implementationPlan.setImplementationDate( ((JTextField) jDateChooserImplementationDate.getDateEditor().getUiComponent()).getText()); ImplementationPlanFactory.getInstance().getImplementationPlanDAO() .addImplementationPlan(implementationPlan); //unitTestingResults.set } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); System.out.println("errror=" + ex.getErrorCode()); } }//GEN-LAST:event_jMenuItem3ActionPerformed private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItem4ActionPerformed private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItem5ActionPerformed private void jMenuItem22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem22ActionPerformed }//GEN-LAST:event_jMenuItem22ActionPerformed private void jMenuItemViewOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemViewOptionsActionPerformed OptionsFrame optionsFrame = new OptionsFrame(); optionsFrame.setVisible(true); }//GEN-LAST:event_jMenuItemViewOptionsActionPerformed private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed try { EstimationResults estimationResults = EstimationResultFactory.getInstance().getEstimationResultsDAO() .getEstimationResultsByEstimationNumber(2); jTextField2.setText(estimationResults.getEstimationNumber().toString()); jTextFieldEstimationDate.setText(estimationResults.getEstimationDate()); jFormattedTextFieldSuccessProbability.setText(estimationResults.getSuccessProbability().toString()); jTextFieldExpectedIncome.setText(estimationResults.getExpectedIncome().toString()); internalResultsNumber = estimationResults.getInternalResultsNumber(); introducingResultNumber = estimationResults.getIntroducingResultNumber(); implementationPlanNumber = estimationResults.getImplementationPlanNumber(); if (estimationResults.isNeedIntroduction() == true) { jTextField12.setText("true"); } else { jTextField12.setText("false"); } } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem2ActionPerformed private void jMenuItemCalculateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemCalculateActionPerformed internalResultsNumber = 2; introducingResultNumber = Integer.parseInt(jSpinner1.getValue().toString()); implementationPlanNumber = Integer.parseInt(jFormattedTextFieldImplementationPlanNumber.getText()); }//GEN-LAST:event_jMenuItemCalculateActionPerformed private void jCheckBoxMenuItemEstimationResultsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxMenuItemEstimationResultsActionPerformed if (jCheckBoxMenuItemEstimationResults.isSelected()) { // jTabbedPane2.setVisible(true); jPanel7.setVisible(true); jCheckBoxMenuItemWorkData.setEnabled(true); } else { //jTabbedPane2.setVisible(false); //jTabbedPane1.setVisible(true); jPanel7.setVisible(false); jCheckBoxMenuItemWorkData.setEnabled(false); } // TODO add your handling code here: }//GEN-LAST:event_jCheckBoxMenuItemEstimationResultsActionPerformed private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem10ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItem10ActionPerformed private void jMenuItemViewSystemTestingResultsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemViewSystemTestingResultsActionPerformed try { SystemTestingResults systemTestingResults = SystemTestingResultsFactory.getInstance() .getSystemTestingResultsDAO().getSystemTestingResultsBySystemTestingNumber( Integer.parseInt(jspinnerNumberResult.getValue().toString())); jTextFieldSystemTotalBugs.setText(systemTestingResults.getTotalBugs().toString()); jTextFieldSystemTotalBugFixes.setText(systemTestingResults.getTotalBugFixes().toString()); jFormattedTextFieldSystemEvaluationUsability .setText(systemTestingResults.getEvaluationUsability().toString()); jFormattedTextFieldExerciseTestingEvaluation .setText(systemTestingResults.getExerciseTestingEvaluation().toString()); jFormattedTextFieldEvaluationUI.setText(systemTestingResults.getEvaluationUI().toString()); jFormattedTextFieldEvaluationCompatibility .setText(systemTestingResults.getEvaluationCompatibility().toString()); jFormattedTextFieldEvaluationSafety.setText(systemTestingResults.getEvaluationSafety().toString()); jFormattedTextFieldEvaluationPerformance .setText(systemTestingResults.getEvaluationPerformance().toString()); ((JTextField) jDateChooser6.getDateEditor().getUiComponent()) .setText(systemTestingResults.getTestingDate().substring(0, 16)); } catch (NullPointerException nullPointerException) { //JOptionPane.showMessageDialog(null, "? ? ? ?", " ?", JOptionPane.ERROR_MESSAGE);; jTextFieldSystemTotalBugs.setText(""); jTextFieldSystemTotalBugFixes.setText(""); jFormattedTextFieldSystemEvaluationUsability.setText(""); jFormattedTextFieldExerciseTestingEvaluation.setText(""); jFormattedTextFieldEvaluationUI.setText(""); jFormattedTextFieldEvaluationCompatibility.setText(""); jFormattedTextFieldEvaluationSafety.setText(""); jFormattedTextFieldEvaluationPerformance.setText(""); ((JTextField) jDateChooser6.getDateEditor().getUiComponent()).setText(""); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItemViewSystemTestingResultsActionPerformed private DefaultComboBoxModel loadDataAboutSystem() { List<SystemTestingResults> systemTestingResultsList = SystemTestingResultsFactory.getInstance() .getSystemTestingResultsDAO().getAllSystemTestingResults(); Vector comboBoxItems = new Vector(); for (int i = 0; i < systemTestingResultsList.size(); i++) { comboBoxItems.add(systemTestingResultsList.get(i).getSystemName()); } final DefaultComboBoxModel model = new DefaultComboBoxModel(comboBoxItems); // jComboBoxProject.addItem(jComboBoxProject.getSelectedItem()); return model; } private DefaultComboBoxModel loadDataAboutProject() { List<Projects> projectsList = null; try { projectsList = ProjectsFactory.getInstance().getProjectsDAO().getAllProjects(); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } Vector comboBoxItems = new Vector(); for (int i = 0; i < projectsList.size(); i++) { comboBoxItems.add(projectsList.get(i).getProjectId().toString()); } final DefaultComboBoxModel model = new DefaultComboBoxModel(comboBoxItems); // jComboBoxProject.addItem(jComboBoxProject.getSelectedItem()); return model; } private DefaultComboBoxModel loadDataAboutBranch() { List<Projects> projectsList = null; try { projectsList = ProjectsFactory.getInstance().getProjectsDAO().getAllProjects(); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } Vector comboBoxItems = new Vector(); for (int i = 0; i < projectsList.size(); i++) { comboBoxItems.add(projectsList.get(i).getProjectId().toString()); } final DefaultComboBoxModel model = new DefaultComboBoxModel(comboBoxItems); // jComboBoxProject.addItem(jComboBoxProject.getSelectedItem()); return model; } private void jMenuItem26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem26ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jMenuItem26ActionPerformed private void jMenuItemSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveActionPerformed JFileChooser jFileChooser = new JFileChooser(directoryName); jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); jFileChooser.setMultiSelectionEnabled(true); jFileChooser.setAcceptAllFileFilterUsed(false); jFileChooser.showSaveDialog(null); File[] fileForChoose = jFileChooser.getSelectedFiles(); int i = 0; while (i < fileForChoose.length) { if (!fileForChoose[i].isFile() || !fileForChoose[i].canRead()) { JOptionPane.showMessageDialog(null, " " + fileForChoose[i].getName() + " ???? , " + " ? ? ? ?!", "", JOptionPane.ERROR_MESSAGE); return; } if (fileForChoose != null) { directoryName = fileForChoose[0].getParent() + "\\"; } jLabelStatusBar.setText(directoryName); i++; } }//GEN-LAST:event_jMenuItemSaveActionPerformed private void jMenuItemExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemExitActionPerformed System.exit(0); }//GEN-LAST:event_jMenuItemExitActionPerformed private void jRadioButtonMenuItemWindowsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonMenuItemWindowsActionPerformed this.setVisible(false); this.dispose(); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (ClassNotFoundException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } TestEstimationFrame testEstimationFrame = new TestEstimationFrame(); testEstimationFrame.setVisible(true); testEstimationFrame.jRadioButtonMenuItemMotif.setSelected(false); testEstimationFrame.jRadioButtonMenuItemClassic.setSelected(false); testEstimationFrame.jRadioButtonMenuItemNimbus.setSelected(false); testEstimationFrame.jRadioButtonMenuItemWindows.setSelected(true); testEstimationFrame.jRadioButtonMenuItemMetallic.setSelected(false); }//GEN-LAST:event_jRadioButtonMenuItemWindowsActionPerformed private void jRadioButtonMenuItemMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonMenuItemMotifActionPerformed this.setVisible(false); this.dispose(); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel"); } catch (ClassNotFoundException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } TestEstimationFrame testEstimationFrame = new TestEstimationFrame(); testEstimationFrame.setVisible(true); testEstimationFrame.jRadioButtonMenuItemMotif.setSelected(true); testEstimationFrame.jRadioButtonMenuItemClassic.setSelected(false); testEstimationFrame.jRadioButtonMenuItemNimbus.setSelected(false); testEstimationFrame.jRadioButtonMenuItemWindows.setSelected(false); testEstimationFrame.jRadioButtonMenuItemMetallic.setSelected(false); }//GEN-LAST:event_jRadioButtonMenuItemMotifActionPerformed private void jRadioButtonMenuItemClassicActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonMenuItemClassicActionPerformed this.setVisible(false); this.dispose(); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); } catch (ClassNotFoundException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } TestEstimationFrame testEstimationFrame = new TestEstimationFrame(); testEstimationFrame.setVisible(true); testEstimationFrame.jRadioButtonMenuItemMotif.setSelected(false); testEstimationFrame.jRadioButtonMenuItemClassic.setSelected(true); testEstimationFrame.jRadioButtonMenuItemNimbus.setSelected(false); testEstimationFrame.jRadioButtonMenuItemWindows.setSelected(false); testEstimationFrame.jRadioButtonMenuItemMetallic.setSelected(false); }//GEN-LAST:event_jRadioButtonMenuItemClassicActionPerformed private void jRadioButtonMenuItemMetallicActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonMenuItemMetallicActionPerformed this.setVisible(false); this.dispose(); try { UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (ClassNotFoundException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } TestEstimationFrame testEstimationFrame = new TestEstimationFrame(); testEstimationFrame.setVisible(true); testEstimationFrame.jRadioButtonMenuItemMotif.setSelected(false); testEstimationFrame.jRadioButtonMenuItemClassic.setSelected(false); testEstimationFrame.jRadioButtonMenuItemNimbus.setSelected(false); testEstimationFrame.jRadioButtonMenuItemWindows.setSelected(false); testEstimationFrame.jRadioButtonMenuItemMetallic.setSelected(true); // TODO add your handling code here: }//GEN-LAST:event_jRadioButtonMenuItemMetallicActionPerformed private void jRadioButtonMenuItemNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonMenuItemNimbusActionPerformed this.setVisible(false); this.dispose(); try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch (ClassNotFoundException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } catch (UnsupportedLookAndFeelException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } TestEstimationFrame testEstimationFrame = new TestEstimationFrame(); testEstimationFrame.setVisible(true); testEstimationFrame.jRadioButtonMenuItemMotif.setSelected(false); testEstimationFrame.jRadioButtonMenuItemClassic.setSelected(false); testEstimationFrame.jRadioButtonMenuItemNimbus.setSelected(true); testEstimationFrame.jRadioButtonMenuItemWindows.setSelected(false); testEstimationFrame.jRadioButtonMenuItemMetallic.setSelected(false); }//GEN-LAST:event_jRadioButtonMenuItemNimbusActionPerformed private void jCheckBoxMenuItemStatusBarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxMenuItemStatusBarActionPerformed if (jCheckBoxMenuItemStatusBar.isSelected()) { jLabelStatusBar.setVisible(true); } else { jLabelStatusBar.setVisible(false); } }//GEN-LAST:event_jCheckBoxMenuItemStatusBarActionPerformed private void jCheckBoxMenuItemWorkDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxMenuItemWorkDataActionPerformed if (jCheckBoxMenuItemWorkData.isSelected()) { // jTabbedPaneDate.setVisible(true); jPanel6.setVisible(true); jCheckBoxMenuItemEstimationResults.setEnabled(true); } else { jPanel6.setVisible(false); jCheckBoxMenuItemEstimationResults.setEnabled(false); //jTabbedPaneDate.setVisible(false); } }//GEN-LAST:event_jCheckBoxMenuItemWorkDataActionPerformed private void jMenuItemSaveAsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemSaveAsActionPerformed JFileChooser jFileChooser = new JFileChooser(directoryName); jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); jFileChooser.setMultiSelectionEnabled(true); jFileChooser.setAcceptAllFileFilterUsed(false); //jFileChooser.showSaveDialog(null); jFileChooser.showDialog(jLabel1, "Save As.."); File[] fileForChoose = jFileChooser.getSelectedFiles(); int i = 0; while (i < fileForChoose.length) { if (!fileForChoose[i].isFile() || !fileForChoose[i].canRead()) { JOptionPane.showMessageDialog(null, " " + fileForChoose[i].getName() + " ???? , " + " ? ? ? ?!", "", JOptionPane.ERROR_MESSAGE); return; } if (fileForChoose != null) { directoryName = fileForChoose[0].getParent() + "\\"; } jLabelStatusBar.setText(directoryName); i++; } // TODO add your handling code here: }//GEN-LAST:event_jMenuItemSaveAsActionPerformed private void jFormattedTextFieldEvaluationRegressionTestingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFormattedTextFieldEvaluationRegressionTestingActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jFormattedTextFieldEvaluationRegressionTestingActionPerformed private void jMenuItemClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClearActionPerformed jTextField2.setText(""); jTextFieldEstimationDate.setText(""); jFormattedTextFieldSuccessProbability.setText(""); jTextFieldExpectedIncome.setText(""); jTextField12.setText(""); }//GEN-LAST:event_jMenuItemClearActionPerformed private void jMenuItemResetOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemResetOptionsActionPerformed TestEstimationFrame testEstimationFrame = null; testEstimationFrame = new TestEstimationFrame(); testEstimationFrame.setVisible(true); this.dispose(); }//GEN-LAST:event_jMenuItemResetOptionsActionPerformed private void jMenuItem23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem23ActionPerformed try { UnitTestingResults unitTestingResults = UnitTestingResultsFactory.getInstance() .getUnitTestingResultsDAO().getUnitTestingResultsByUnitTestingNumber( Integer.parseInt(jSpinnerModalResultNumber.getValue().toString())); unitTestingResultsCurrent = unitTestingResults; jTextFieldUnitTotalBugs.setText(unitTestingResults.getTotalBugs().toString()); jFormattedTextFieldEvaluationRegressionTesting .setText(unitTestingResults.getEvaluationRegressionTesting().toString()); jTextFieldMockObjectNumber.setText(unitTestingResults.getMockObjectNumber().toString()); jFormattedTextFieldCoverRatioUnitTests.setText(unitTestingResults.getCoverRatioUnitTests().toString()); jTextFieldUnitTotalBugFixes.setText(unitTestingResults.getTotalBugFixes().toString()); jTextFieldReportedBugsNumber.setText(unitTestingResults.getReportedBugsNumber().toString()); ((JTextField) jDateChooser4.getDateEditor().getUiComponent()) .setText(unitTestingResults.getTestingDate().substring(0, 16)); } catch (NullPointerException nullPointerException) { jTextFieldUnitTotalBugs.setText(""); jFormattedTextFieldEvaluationRegressionTesting.setText(""); jTextFieldMockObjectNumber.setText(""); jFormattedTextFieldCoverRatioUnitTests.setText(""); jTextFieldUnitTotalBugFixes.setText(""); jTextFieldReportedBugsNumber.setText(""); ((JTextField) jDateChooser4.getDateEditor().getUiComponent()).setText(""); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem23ActionPerformed private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem20ActionPerformed try { IntroducingResults introducingResults = IntroducingResultsFactory.getInstance() .getIntroducingResultDAO() .getIntroducingResultsByNumber(Integer.parseInt(jSpinner1.getValue().toString())); jTextFieldIntroducingResultsTotalBugs.setText(introducingResults.getTotalBugs().toString()); jFormattedTextFieldIntroducingResultsTotalUserEstimation .setText(introducingResults.getTotalUserEstimation().toString()); jTextFieldFundsSpentOnImplementation .setText(introducingResults.getFundsSpentOnImplementation().toString()); jFormattedTextFieldIntroducingResultsStability.setText(introducingResults.getStability().toString()); jTextFieldPreliminaryIncome.setText(introducingResults.getPreliminaryIncome().toString()); ((JTextField) jDateChooser5.getDateEditor().getUiComponent()) .setText(introducingResults.getIntroducingResultDate().substring(0, 16)); } catch (NullPointerException nullPointerException) { jTextFieldIntroducingResultsTotalBugs.setText(""); jFormattedTextFieldIntroducingResultsTotalUserEstimation.setText(""); jTextFieldFundsSpentOnImplementation.setText(""); jFormattedTextFieldIntroducingResultsStability.setText(""); jTextFieldPreliminaryIncome.setText(""); ((JTextField) jDateChooser5.getDateEditor().getUiComponent()).setText(""); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem20ActionPerformed private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed try { ImplementationPlan implementationPlan = ImplementationPlanFactory.getInstance() .getImplementationPlanDAO().getImplementationPlanByNumber(Integer.parseInt( conversionStringVersion(jFormattedTextFieldImplementationPlanNumber.getText()))); jTextFieldImplementationPlanExpectedIncome.setText(implementationPlan.getExpectedIncome().toString()); jTextFieldImplementationPlanName.setText(implementationPlan.getImplementationPlanName()); jFormattedTextFieldImplementationPlanStability.setText(implementationPlan.getStability().toString()); jTextFieldImplementationPlanTotalBugs.setText(implementationPlan.getTotalBugs().toString()); jFormattedTextFieldTotalUserEstimation.setText(implementationPlan.getStability().toString()); } catch (NullPointerException nullPointerException) { jTextFieldImplementationPlanName.setText(""); jTextFieldImplementationPlanExpectedIncome.setText(""); jFormattedTextFieldImplementationPlanStability.setText(""); jTextFieldImplementationPlanTotalBugs.setText(""); jFormattedTextFieldTotalUserEstimation.setText(""); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem6ActionPerformed private void jMenuItemEstimateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemEstimateActionPerformed EstimationResults estimationResults = new EstimationResults(); estimationResults.setEstimationDate(jTextFieldEstimationDate.getText()); estimationResults.setSuccessProbability(Integer.parseInt(jFormattedTextFieldSuccessProbability.getText())); estimationResults.setExpectedIncome(Long.parseLong(jTextFieldExpectedIncome.getText())); estimationResults.setInternalResultsNumber(internalResultsNumber); estimationResults.setIntroducingResultNumber(internalResultsNumber); estimationResults.setImplementationPlanNumber(implementationPlanNumber); if (jTextField12.getText() == "true") { estimationResults.setNeedIntroduction(true); } else { estimationResults.setNeedIntroduction(false); } try { EstimationResultFactory.getInstance().getEstimationResultsDAO().addEstimationResults(estimationResults); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItemEstimateActionPerformed private void jFormattedTextFieldSuccessProbabilityActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFormattedTextFieldSuccessProbabilityActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jFormattedTextFieldSuccessProbabilityActionPerformed private void jCheckBoxMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxMenuItem1ActionPerformed session = HibernateUtil.getSessionFactory().openSession(); }//GEN-LAST:event_jCheckBoxMenuItem1ActionPerformed private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed UnitTestingResults unitTestingResults = new UnitTestingResults(); if (("".equals(jTextFieldUnitTotalBugs.getText())) || ("".equals(jTextFieldMockObjectNumber.getText())) || ("".equals(jTextFieldUnitTotalBugFixes.getText())) || ("".equals(jTextFieldReportedBugsNumber.getText())) || ("".equals(((JTextField) jDateChooser4.getDateEditor().getUiComponent()).getText()))) { JOptionPane.showMessageDialog(null, "? ? ? ?", " ?", JOptionPane.ERROR_MESSAGE); return; } // unitTestingResults.setTotalBugs(Integer.parseInt(jTextFieldUnitTotalBugs.getText())); unitTestingResults.setEvaluationRegressionTesting(Integer .parseInt(conversionStringPercent(jFormattedTextFieldEvaluationRegressionTesting.getText()))); unitTestingResults.setMockObjectNumber(Integer.parseInt(jTextFieldMockObjectNumber.getText())); unitTestingResults.setCoverRatioUnitTests( Integer.parseInt(conversionStringPercent(jFormattedTextFieldCoverRatioUnitTests.getText()))); unitTestingResults.setTotalBugFixes(Integer.parseInt(jTextFieldUnitTotalBugFixes.getText())); unitTestingResults.setReportedBugsNumber(Integer.parseInt(jTextFieldReportedBugsNumber.getText())); unitTestingResults.setTestingDate(((JTextField) jDateChooser4.getDateEditor().getUiComponent()).getText()); unitTestingResults.setBranchId(1); unitTestingResults.setProjectId(1); try { UnitTestingResultsFactory.getInstance().getUnitTestingResultsDAO() .addUnitTestingResults(unitTestingResults); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem7ActionPerformed private void jMenuItem28ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem28ActionPerformed SystemTestingResults systemTestingResults = new SystemTestingResults(); if (("".equals(jTextFieldSystemTotalBugs.getText())) || ("".equals(jTextFieldSystemTotalBugFixes.getText())) || ("".equals(jFormattedTextFieldSystemEvaluationUsability.getText())) || ("".equals(jFormattedTextFieldExerciseTestingEvaluation.getText())) || ("".equals(jFormattedTextFieldEvaluationUI.getText())) || ("".equals(jFormattedTextFieldEvaluationCompatibility.getText())) || ("".equals(jFormattedTextFieldEvaluationSafety.getText())) || ("".equals(jFormattedTextFieldEvaluationPerformance.getText())) || ("".equals(((JTextComponent) jDateChooser6.getDateEditor().getUiComponent()).getText()))) { JOptionPane.showMessageDialog(null, "? ? ? ?", " ?", JOptionPane.ERROR_MESSAGE); return; } // systemTestingResults.setTotalBugs(Integer.parseInt(jTextFieldSystemTotalBugs.getText())); systemTestingResults.setTotalBugFixes(Integer.parseInt(jTextFieldSystemTotalBugFixes.getText())); systemTestingResults.setEvaluationUsability( Integer.parseInt(conversionStringPercent(jFormattedTextFieldSystemEvaluationUsability.getText()))); systemTestingResults.setExerciseTestingEvaluation( Integer.parseInt(conversionStringPercent(jFormattedTextFieldExerciseTestingEvaluation.getText()))); systemTestingResults.setEvaluationUI( Integer.parseInt(conversionStringPercent(jFormattedTextFieldEvaluationUI.getText()))); systemTestingResults.setEvaluationCompatibility( Integer.parseInt(conversionStringPercent(jFormattedTextFieldEvaluationCompatibility.getText()))); systemTestingResults.setEvaluationSafety( Integer.parseInt(conversionStringPercent(jFormattedTextFieldEvaluationSafety.getText()))); systemTestingResults.setEvaluationPerformance( Integer.parseInt(conversionStringPercent(jFormattedTextFieldEvaluationPerformance.getText()))); systemTestingResults .setTestingDate(((JTextField) jDateChooser6.getDateEditor().getUiComponent()).getText()); systemTestingResults.setBranchId(1); systemTestingResults.setProjectId(1); try { SystemTestingResultsFactory.getInstance().getSystemTestingResultsDAO() .addSystemTestingResults(systemTestingResults); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem28ActionPerformed private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed IntroducingResults introducingResults = new IntroducingResults(); if (("".equals(jTextFieldIntroducingResultsTotalBugs.getText())) || ("".equals(jFormattedTextFieldIntroducingResultsTotalUserEstimation.getText())) || ("".equals(jTextFieldFundsSpentOnImplementation.getText())) || ("".equals(jFormattedTextFieldIntroducingResultsStability.getText())) || ("".equals(jTextFieldPreliminaryIncome.getText())) || ("".equals(((JTextField) jDateChooser5.getDateEditor().getUiComponent()).getText()))) { JOptionPane.showMessageDialog(null, "? ? ? ?", " ?", JOptionPane.ERROR_MESSAGE); ; return; } // introducingResults.setTotalBugs(Integer.parseInt(jTextFieldIntroducingResultsTotalBugs.getText())); introducingResults.setTotalUserEstimation(Integer.parseInt( conversionStringPercent(jFormattedTextFieldIntroducingResultsTotalUserEstimation.getText()))); introducingResults .setFundsSpentOnImplementation(Integer.parseInt(jTextFieldFundsSpentOnImplementation.getText())); introducingResults.setStability(Integer .parseInt(conversionStringPercent(jFormattedTextFieldIntroducingResultsStability.getText()))); introducingResults.setPreliminaryIncome(Integer.parseInt(jTextFieldPreliminaryIncome.getText())); introducingResults .setIntroducingResultDate(((JTextField) jDateChooser5.getDateEditor().getUiComponent()).getText()); try { IntroducingResultsFactory.getInstance().getIntroducingResultDAO() .addIntroducingResults(introducingResults); } catch (SQLException ex) { Logger.getLogger(TestEstimationFrame.class.getName()).log(Level.SEVERE, null, ex); } }//GEN-LAST:event_jMenuItem1ActionPerformed private void jspinnerNumberResultStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jspinnerNumberResultStateChanged jMenuItemViewSystemTestingResultsActionPerformed(null); }//GEN-LAST:event_jspinnerNumberResultStateChanged private void jspinnerNumberResultKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jspinnerNumberResultKeyPressed jMenuItemViewSystemTestingResultsActionPerformed(null); }//GEN-LAST:event_jspinnerNumberResultKeyPressed private void jSpinnerModalResultNumberStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerModalResultNumberStateChanged jMenuItem23ActionPerformed(null); }//GEN-LAST:event_jSpinnerModalResultNumberStateChanged private void jSpinnerModalResultNumberKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jSpinnerModalResultNumberKeyPressed jMenuItem23ActionPerformed(null); }//GEN-LAST:event_jSpinnerModalResultNumberKeyPressed private void jSpinner1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinner1StateChanged jMenuItem20ActionPerformed(null); }//GEN-LAST:event_jSpinner1StateChanged private void jSpinner1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jSpinner1KeyPressed jMenuItem20ActionPerformed(null); }//GEN-LAST:event_jSpinner1KeyPressed private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed jMenuItem6ActionPerformed(null); jMenuItem20ActionPerformed(null); jMenuItem23ActionPerformed(null); jMenuItemViewSystemTestingResultsActionPerformed(null); }//GEN-LAST:event_jMenuItem8ActionPerformed private void jFormattedTextFieldImplementationPlanNumberKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jFormattedTextFieldImplementationPlanNumberKeyPressed jMenuItem6ActionPerformed(null); }//GEN-LAST:event_jFormattedTextFieldImplementationPlanNumberKeyPressed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed getSystemNameCount(); }//GEN-LAST:event_jButton1ActionPerformed private void jMenuItem24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem24ActionPerformed jTextFieldUnitTotalBugs.setText(""); jFormattedTextFieldEvaluationRegressionTesting.setText(""); jTextFieldMockObjectNumber.setText(""); jFormattedTextFieldCoverRatioUnitTests.setText(""); jTextFieldUnitTotalBugFixes.setText(""); jTextFieldReportedBugsNumber.setText(""); ((JTextField) jDateChooser4.getDateEditor().getUiComponent()).setText(""); try { UnitTestingResultsFactory.getInstance().getUnitTestingResultsDAO() .deleteUnitTestingNumber(unitTestingResultsCurrent); } catch (Exception exception) { } }//GEN-LAST:event_jMenuItem24ActionPerformed private void getSystemNameCount() { Session session = null; //private int systemCount; UnitTestingResults unitTestingResults = null; try { session = HibernateUtil.getSessionFactory().openSession(); session.doWork(new Work() { public void execute(Connection connection) throws SQLException { CallableStatement call = connection .prepareCall("{ ? = call MOROCHENETS_OLEXIY.GET_SYSTEM_COUNT() }"); call.registerOutParameter(1, OracleTypes.CURSOR); call.execute(); ResultSet resultSet = (ResultSet) call.getObject(1); while (resultSet.next()) { systemCount = resultSet.getInt("Count(*)"); System.out.println("systemCount" + systemCount); } } }); } catch (Exception e) { JOptionPane.showMessageDialog(null, e.getMessage(), " I/O", JOptionPane.OK_OPTION); } finally { if (session != null && session.isOpen()) { session.close(); } } } public String conversionStringPercent(String percent) { return percent.substring(0, 2) + percent.substring(3, 4); } public String conversionStringVersion(String percent) { return percent.substring(3, 5) + percent.substring(6, 8); } private Session session = null; /** * @param args the command line arguments */ public static void main(String args[]) { /* try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getImplementationPlanName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(TestEstimationFrame.class.getImplementationPlanName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> */ /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { new TestEstimationFrame().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.Box.Filler filler2; private javax.swing.JButton jButton1; private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1; private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItemEstimationResults; private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItemStatusBar; private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItemWorkData; private javax.swing.JComboBox jComboBoxBranch; private javax.swing.JComboBox jComboBoxProject; private javax.swing.JComboBox jComboBoxSystem; private com.toedter.calendar.JDateChooser jDateChooser1; private com.toedter.calendar.JDateChooser jDateChooser2; private com.toedter.calendar.JDateChooser jDateChooser4; private com.toedter.calendar.JDateChooser jDateChooser5; private com.toedter.calendar.JDateChooser jDateChooser6; private com.toedter.calendar.JDateChooser jDateChooserImplementationDate; private javax.swing.JFormattedTextField jFormattedTextFieldCoverRatioUnitTests; private javax.swing.JFormattedTextField jFormattedTextFieldEvaluationCompatibility; private javax.swing.JFormattedTextField jFormattedTextFieldEvaluationPerformance; private javax.swing.JFormattedTextField jFormattedTextFieldEvaluationRegressionTesting; private javax.swing.JFormattedTextField jFormattedTextFieldEvaluationSafety; private javax.swing.JFormattedTextField jFormattedTextFieldEvaluationUI; private javax.swing.JFormattedTextField jFormattedTextFieldExerciseTestingEvaluation; private javax.swing.JFormattedTextField jFormattedTextFieldImplementationPlanNumber; private javax.swing.JFormattedTextField jFormattedTextFieldImplementationPlanStability; private javax.swing.JFormattedTextField jFormattedTextFieldIntroducingResultsStability; private javax.swing.JFormattedTextField jFormattedTextFieldIntroducingResultsTotalUserEstimation; private javax.swing.JFormattedTextField jFormattedTextFieldSuccessProbability; private javax.swing.JFormattedTextField jFormattedTextFieldSystemEvaluationUsability; private javax.swing.JFormattedTextField jFormattedTextFieldTotalUserEstimation; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel12; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel14; private javax.swing.JLabel jLabel15; private javax.swing.JLabel jLabel16; private javax.swing.JLabel jLabel17; private javax.swing.JLabel jLabel18; private javax.swing.JLabel jLabel19; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel20; private javax.swing.JLabel jLabel21; private javax.swing.JLabel jLabel22; private javax.swing.JLabel jLabel23; private javax.swing.JLabel jLabel24; private javax.swing.JLabel jLabel25; private javax.swing.JLabel jLabel26; private javax.swing.JLabel jLabel27; private javax.swing.JLabel jLabel28; private javax.swing.JLabel jLabel29; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel30; private javax.swing.JLabel jLabel31; private javax.swing.JLabel jLabel32; private javax.swing.JLabel jLabel33; private javax.swing.JLabel jLabel34; private javax.swing.JLabel jLabel35; private javax.swing.JLabel jLabel36; private javax.swing.JLabel jLabel37; private javax.swing.JLabel jLabel38; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JLabel jLabelExpectedIncome; private javax.swing.JLabel jLabelStatusBar; private javax.swing.JLabel jLabelSuccessProbability; private javax.swing.JMenu jMenu17; private javax.swing.JMenu jMenu22; private javax.swing.JMenu jMenu23; private javax.swing.JMenu jMenu28; private javax.swing.JMenu jMenu29; private javax.swing.JMenuBar jMenuBar1; private javax.swing.JMenu jMenuData; private javax.swing.JMenu jMenuFile; private javax.swing.JMenu jMenuHelp; private javax.swing.JMenuItem jMenuItem1; private javax.swing.JMenuItem jMenuItem10; private javax.swing.JMenuItem jMenuItem17; private javax.swing.JMenuItem jMenuItem2; private javax.swing.JMenuItem jMenuItem20; private javax.swing.JMenuItem jMenuItem22; private javax.swing.JMenuItem jMenuItem23; private javax.swing.JMenuItem jMenuItem24; private javax.swing.JMenuItem jMenuItem26; private javax.swing.JMenuItem jMenuItem28; private javax.swing.JMenuItem jMenuItem3; private javax.swing.JMenuItem jMenuItem4; private javax.swing.JMenuItem jMenuItem5; private javax.swing.JMenuItem jMenuItem6; private javax.swing.JMenuItem jMenuItem7; private javax.swing.JMenuItem jMenuItem8; private javax.swing.JMenuItem jMenuItemAboutProgram; private javax.swing.JMenuItem jMenuItemCalculate; private javax.swing.JMenuItem jMenuItemCheckUpdating; private javax.swing.JMenuItem jMenuItemClear; private javax.swing.JMenuItem jMenuItemDocumentation; private javax.swing.JMenuItem jMenuItemEstimate; private javax.swing.JMenuItem jMenuItemExit; private javax.swing.JMenuItem jMenuItemHelp; private javax.swing.JMenuItem jMenuItemOpen; private javax.swing.JMenuItem jMenuItemPrint; private javax.swing.JMenuItem jMenuItemReportBug; private javax.swing.JMenuItem jMenuItemResetOptions; private javax.swing.JMenuItem jMenuItemSave; private javax.swing.JMenuItem jMenuItemSaveAll; private javax.swing.JMenuItem jMenuItemSaveAs; private javax.swing.JMenuItem jMenuItemSavingOptions; private javax.swing.JMenuItem jMenuItemViewOptions; private javax.swing.JMenuItem jMenuItemViewSystemTestingResults; private javax.swing.JMenu jMenuOpenLast; private javax.swing.JMenu jMenuResult; private javax.swing.JMenu jMenuStyle; private javax.swing.JMenu jMenuView; private javax.swing.JMenu jMenuWindow; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel4; private javax.swing.JPanel jPanel5; private javax.swing.JPanel jPanel6; private javax.swing.JPanel jPanel7; private javax.swing.JProgressBar jProgressBar1; private javax.swing.JRadioButtonMenuItem jRadioButtonMenuItem1; private javax.swing.JRadioButtonMenuItem jRadioButtonMenuItemClassic; private javax.swing.JRadioButtonMenuItem jRadioButtonMenuItemMetallic; private javax.swing.JRadioButtonMenuItem jRadioButtonMenuItemMotif; private javax.swing.JRadioButtonMenuItem jRadioButtonMenuItemNimbus; private javax.swing.JRadioButtonMenuItem jRadioButtonMenuItemWindows; private javax.swing.JPopupMenu.Separator jSeparator1; private javax.swing.JPopupMenu.Separator jSeparator10; private javax.swing.JPopupMenu.Separator jSeparator11; private javax.swing.JPopupMenu.Separator jSeparator12; private javax.swing.JPopupMenu.Separator jSeparator13; private javax.swing.JPopupMenu.Separator jSeparator14; private javax.swing.JPopupMenu.Separator jSeparator2; private javax.swing.JPopupMenu.Separator jSeparator3; private javax.swing.JPopupMenu.Separator jSeparator4; private javax.swing.JPopupMenu.Separator jSeparator5; private javax.swing.JPopupMenu.Separator jSeparator6; private javax.swing.JPopupMenu.Separator jSeparator7; private javax.swing.JPopupMenu.Separator jSeparator8; private javax.swing.JPopupMenu.Separator jSeparator9; private javax.swing.JSpinner jSpinner1; private SpinnerNumberModel spinnerNumberModel; private javax.swing.JSpinner jSpinnerModalResultNumber; private javax.swing.JTabbedPane jTabbedPane2; private javax.swing.JTabbedPane jTabbedPaneDate; private javax.swing.JTextField jTextField12; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextFieldEstimationDate; private javax.swing.JTextField jTextFieldExpectedIncome; private javax.swing.JTextField jTextFieldFundsSpentOnImplementation; private javax.swing.JTextField jTextFieldImplementationPlanExpectedIncome; private javax.swing.JTextField jTextFieldImplementationPlanName; private javax.swing.JTextField jTextFieldImplementationPlanTotalBugs; private javax.swing.JTextField jTextFieldIntroducingResultsTotalBugs; private javax.swing.JTextField jTextFieldMockObjectNumber; private javax.swing.JTextField jTextFieldPreliminaryIncome; private javax.swing.JTextField jTextFieldReportedBugsNumber; private javax.swing.JTextField jTextFieldSystemTotalBugFixes; private javax.swing.JTextField jTextFieldSystemTotalBugs; private javax.swing.JTextField jTextFieldUnitTotalBugFixes; private javax.swing.JTextField jTextFieldUnitTotalBugs; private javax.swing.JSpinner jspinnerNumberResult; // End of variables declaration//GEN-END:variables }