Program: 50569
Project: 50569
Buggy source:
private void initGUI(){
  try {
    this.setSize(520,532);
    this.addWindowListener(new WindowAdapter(){
      public void windowClosed(      WindowEvent evt){
        System.exit(1);
      }
    }
);
{
      pnlMain=new JPanel();
      GridBagLayout jPanel2Layout=new GridBagLayout();
      jPanel2Layout.columnWeights=new double[]{0.1};
      jPanel2Layout.columnWidths=new int[]{7};
      jPanel2Layout.rowWeights=new double[]{0.1,0.1,0.1};
      jPanel2Layout.rowHeights=new int[]{7,7,7};
      pnlMain.setLayout(jPanel2Layout);
      this.getContentPane().add(pnlMain,BorderLayout.CENTER);
{
        jPanel1=new JPanel();
        pnlMain.add(jPanel1,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
        FlowLayout jPanel1Layout=new FlowLayout();
        jPanel1Layout.setAlignment(FlowLayout.LEFT);
        jPanel1.setLayout(jPanel1Layout);
{
          lblName=new JLabel();
          jPanel1.add(lblName);
          lblName.setText("String_Node_Str");
        }
{
          txtName=new JTextField();
          jPanel1.add(txtName);
          txtName.setText("String_Node_Str");
          txtName.setPreferredSize(new java.awt.Dimension(179,20));
          txtName.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              myRecipe.setName(txtName.getText());
            }
          }
);
        }
      }
{
        jTabbedPane1=new JTabbedPane();
        pnlMain.add(jTabbedPane1,new GridBagConstraints(0,1,1,1,0.1,0.1,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
{
          pnlDetails=new JPanel();
          GridBagLayout pnlDetailsLayout=new GridBagLayout();
          pnlDetailsLayout.columnWeights=new double[]{0.1,0.1,0.1,0.1,0.1,0.1,0.1};
          pnlDetailsLayout.columnWidths=new int[]{7,7,7,7,7,7,7};
          pnlDetailsLayout.rowWeights=new double[]{0.1,0.1,0.1,0.1,0.1,0.1,0.1};
          pnlDetailsLayout.rowHeights=new int[]{7,7,7,7,7,7,7};
          pnlDetails.setLayout(pnlDetailsLayout);
          jTabbedPane1.addTab("String_Node_Str",null,pnlDetails,null);
{
            lblBrewer=new JLabel();
            pnlDetails.add(lblBrewer,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblBrewer.setText("String_Node_Str");
          }
{
            txtBrewer=new JTextField();
            pnlDetails.add(txtBrewer,new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtBrewer.setText("String_Node_Str");
            txtBrewer.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                myRecipe.setBrewer(txtBrewer.getText());
              }
            }
);
          }
{
            lblDate=new JLabel();
            pnlDetails.add(lblDate,new GridBagConstraints(0,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblDate.setText("String_Node_Str");
          }
{
            lblStyle=new JLabel();
            pnlDetails.add(lblStyle,new GridBagConstraints(0,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblStyle.setText("String_Node_Str");
          }
{
            lblYeast=new JLabel();
            pnlDetails.add(lblYeast,new GridBagConstraints(0,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblYeast.setText("String_Node_Str");
          }
{
            lblPreBoil=new JLabel();
            pnlDetails.add(lblPreBoil,new GridBagConstraints(0,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblPreBoil.setText("String_Node_Str");
          }
{
            lblPostBoil=new JLabel();
            pnlDetails.add(lblPostBoil,new GridBagConstraints(0,5,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblPostBoil.setText("String_Node_Str");
          }
{
            lblMash=new JLabel();
            pnlDetails.add(lblMash,new GridBagConstraints(0,6,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblMash.setText("String_Node_Str");
          }
{
            lblEffic=new JLabel();
            pnlDetails.add(lblEffic,new GridBagConstraints(3,0,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblEffic.setText("String_Node_Str");
          }
{
            lblAtten=new JLabel();
            pnlDetails.add(lblAtten,new GridBagConstraints(3,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblAtten.setText("String_Node_Str");
          }
{
            lblOG=new JLabel();
            pnlDetails.add(lblOG,new GridBagConstraints(3,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblOG.setText("String_Node_Str");
          }
{
            lblFG=new JLabel();
            pnlDetails.add(lblFG,new GridBagConstraints(3,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblFG.setText("String_Node_Str");
          }
{
            lblIBU=new JLabel();
            pnlDetails.add(lblIBU,new GridBagConstraints(5,0,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblIBU.setText("String_Node_Str");
          }
{
            lblAlc=new JLabel();
            pnlDetails.add(lblAlc,new GridBagConstraints(5,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblAlc.setText("String_Node_Str");
          }
{
            lblColour=new JLabel();
            pnlDetails.add(lblColour,new GridBagConstraints(5,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblColour.setText("String_Node_Str");
          }
{
            txtDate=new JTextField();
            pnlDetails.add(txtDate,new GridBagConstraints(1,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtDate.setText("String_Node_Str");
          }
{
            cmbStyleModel=new ComboModel();
            cmbStyle=new JComboBox();
            pnlDetails.add(cmbStyle,new GridBagConstraints(1,2,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            cmbStyle.setModel(cmbStyleModel);
            cmbStyle.setMaximumSize(new java.awt.Dimension(100,32767));
            cmbStyle.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                Style s=(Style)cmbStyleModel.getSelectedItem();
                if (myRecipe != null && s != myRecipe.getStyleObj()) {
                  myRecipe.setStyle(s);
                }
              }
            }
);
          }
{
            txtPreBoil=new JFormattedTextField();
            pnlDetails.add(txtPreBoil,new GridBagConstraints(1,4,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtPreBoil.setText("String_Node_Str");
            txtPreBoil.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                myRecipe.setPreBoil(Double.parseDouble(txtPreBoil.getText().toString()));
                displayRecipe();
              }
            }
);
          }
{
            txtPostBoil=new JFormattedTextField();
            pnlDetails.add(txtPostBoil,new GridBagConstraints(1,5,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtPostBoil.setText("String_Node_Str");
            txtPostBoil.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                System.out.println("String_Node_Str" + evt);
                myRecipe.setPostBoil(Double.parseDouble(txtPostBoil.getText().toString()));
                displayRecipe();
              }
            }
);
          }
{
            lblComments=new JLabel();
            pnlDetails.add(lblComments,new GridBagConstraints(3,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblComments.setText("String_Node_Str");
          }
{
            SpinnerNumberModel spnEfficModel=new SpinnerNumberModel(75.0,0.0,100.0,1.0);
            spnEffic=new JSpinner();
            pnlDetails.add(spnEffic,new GridBagConstraints(4,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnEffic.setModel(spnEfficModel);
            spnEffic.setMaximumSize(new java.awt.Dimension(70,32767));
            spnEffic.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setEfficiency(Double.parseDouble(spnEffic.getValue().toString()));
                displayRecipe();
              }
            }
);
            spnEffic.setEditor(new JSpinner.NumberEditor(spnEffic,"String_Node_Str"));
          }
{
            SpinnerNumberModel spnAttenModel=new SpinnerNumberModel(75.0,0.0,100.0,1.0);
            spnAtten=new JSpinner();
            pnlDetails.add(spnAtten,new GridBagConstraints(4,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnAtten.setModel(spnAttenModel);
            spnAtten.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setAttenuation(Double.parseDouble(spnAtten.getValue().toString()));
                displayRecipe();
              }
            }
);
            spnAtten.setEditor(new JSpinner.NumberEditor(spnAtten,"String_Node_Str"));
          }
{
            SpinnerNumberModel spnOgModel=new SpinnerNumberModel(1.000,0.900,2.000,0.001);
            spnOG=new JSpinner();
            pnlDetails.add(spnOG,new GridBagConstraints(4,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnOG.setModel(spnOgModel);
            spnOG.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setEstOg(Double.parseDouble(spnOG.getValue().toString()));
                displayRecipe();
              }
            }
);
            spnOG.setEditor(new JSpinner.NumberEditor(spnOG,"String_Node_Str"));
          }
{
            SpinnerNumberModel spnFgModel=new SpinnerNumberModel(1.000,0.900,2.000,0.001);
            spnFG=new JSpinner();
            pnlDetails.add(spnFG,new GridBagConstraints(4,3,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnFG.setModel(spnFgModel);
            spnFG.setEditor(new JSpinner.NumberEditor(spnFG,"String_Node_Str"));
            spnFG.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setEstFg(Double.parseDouble(spnFG.getValue().toString()));
                displayRecipe();
              }
            }
);
          }
{
            lblIBUvalue=new JLabel();
            pnlDetails.add(lblIBUvalue,new GridBagConstraints(6,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblIBUvalue.setText("String_Node_Str");
          }
{
            lblColourValue=new JLabel();
            pnlDetails.add(lblColourValue,new GridBagConstraints(6,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblColourValue.setText("String_Node_Str");
          }
{
            lblAlcValue=new JLabel();
            pnlDetails.add(lblAlcValue,new GridBagConstraints(6,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblAlcValue.setText("String_Node_Str");
          }
{
            scpComments=new JScrollPane();
            pnlDetails.add(scpComments,new GridBagConstraints(3,5,4,2,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
{
              txtComments=new JTextArea();
              scpComments.setViewportView(txtComments);
              txtComments.setText("String_Node_Str");
              txtComments.setWrapStyleWord(true);
              txtComments.addFocusListener(new FocusAdapter(){
                public void focusLost(                FocusEvent evt){
                  if (!txtComments.getText().equals(myRecipe.getComments())) {
                    myRecipe.setComments(txtComments.getText());
                  }
                }
              }
);
            }
          }
{
            cmbYeastModel=new ComboModel();
            cmbYeast=new JComboBox();
            pnlDetails.add(cmbYeast,new GridBagConstraints(1,3,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            cmbYeast.setModel(cmbYeastModel);
            cmbYeast.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                Yeast y=(Yeast)cmbYeastModel.getSelectedItem();
                if (myRecipe != null && y != myRecipe.getYeastObj()) {
                  myRecipe.setYeast(y);
                }
              }
            }
);
          }
{
            ComboBoxModel cmbSizeUnitsModel=new DefaultComboBoxModel(new String[]{"String_Node_Str","String_Node_Str"});
            cmbSizeUnits=new JComboBox();
            pnlDetails.add(cmbSizeUnits,new GridBagConstraints(2,4,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            cmbSizeUnits.setModel(cmbSizeUnitsModel);
          }
{
            lblSizeUnits=new JLabel();
            pnlDetails.add(lblSizeUnits,new GridBagConstraints(2,5,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblSizeUnits.setText("String_Node_Str");
          }
        }
{
          pnlStyle=new JPanel();
          FlowLayout pnlStyleLayout=new FlowLayout();
          pnlStyle.setLayout(pnlStyleLayout);
          jTabbedPane1.addTab("String_Node_Str",null,pnlStyle,null);
{
            lblStyle2=new JLabel();
            pnlStyle.add(lblStyle2);
            lblStyle2.setText("String_Node_Str");
          }
{
            ComboBoxModel cmbStyle2Model=new DefaultComboBoxModel(new String[]{"String_Node_Str","String_Node_Str"});
            cmbStyle2=new JComboBox();
            pnlStyle.add(cmbStyle2);
            cmbStyle2.setModel(cmbStyle2Model);
          }
{
            jPanel2=new JPanel();
            GridBagLayout jPanel2Layout1=new GridBagLayout();
            jPanel2Layout1.columnWeights=new double[]{0.1,0.1,0.1,0.1};
            jPanel2Layout1.columnWidths=new int[]{7,7,7,7};
            jPanel2Layout1.rowWeights=new double[]{0.1,0.1,0.1,0.1,0.1,0.1};
            jPanel2Layout1.rowHeights=new int[]{7,7,7,7,7,7};
            jPanel2.setPreferredSize(new java.awt.Dimension(179,120));
            jPanel2.setLayout(jPanel2Layout1);
            pnlStyle.add(jPanel2);
            jPanel2.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),1,false),"String_Node_Str",TitledBorder.LEADING,TitledBorder.TOP,new java.awt.Font("String_Node_Str",0,12),new java.awt.Color(0,0,0)));
{
              jLabel5=new JLabel();
              jPanel2.add(jLabel5,new GridBagConstraints(0,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel5.setText("String_Node_Str");
              jLabel5.setBounds(74,3,60,30);
            }
{
              jLabel1=new JLabel();
              jPanel2.add(jLabel1,new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              GridLayout jLabel1Layout=new GridLayout(1,1);
              jLabel1.setLayout(jLabel1Layout);
              jLabel1.setText("String_Node_Str");
            }
{
              jLabel2=new JLabel();
              jPanel2.add(jLabel2,new GridBagConstraints(2,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel2.setText("String_Node_Str");
            }
{
              jLabel3=new JLabel();
              jPanel2.add(jLabel3,new GridBagConstraints(3,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel3.setText("String_Node_Str");
            }
{
              jLabel4=new JLabel();
              jPanel2.add(jLabel4,new GridBagConstraints(0,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel4.setText("String_Node_Str");
            }
{
              jLabel6=new JLabel();
              jPanel2.add(jLabel6,new GridBagConstraints(0,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel6.setText("String_Node_Str");
            }
{
              jLabel7=new JLabel();
              jPanel2.add(jLabel7,new GridBagConstraints(0,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel7.setText("String_Node_Str");
            }
          }
{
            jScrollPane3=new JScrollPane();
            pnlStyle.add(jScrollPane3);
{
              txaStyles=new JTextArea();
              jScrollPane3.setViewportView(txaStyles);
              txaStyles.setText("String_Node_Str");
            }
          }
{
            sldMatch=new JSlider();
            pnlStyle.add(sldMatch);
          }
        }
      }
{
        pnlTables=new JPanel();
        BoxLayout pnlMaltsLayout=new BoxLayout(pnlTables,javax.swing.BoxLayout.Y_AXIS);
        pnlMain.add(pnlTables,new GridBagConstraints(0,2,1,1,0.5,0.5,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
        pnlTables.setLayout(pnlMaltsLayout);
{
          pnlMalt=new JPanel();
          pnlTables.add(pnlMalt);
          BorderLayout pnlMaltLayout1=new BorderLayout();
          FlowLayout pnlMaltLayout=new FlowLayout();
          pnlMalt.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),1,false),"String_Node_Str",TitledBorder.LEADING,TitledBorder.TOP,new java.awt.Font("String_Node_Str",1,12),new java.awt.Color(51,51,51)));
          pnlMalt.setLayout(pnlMaltLayout1);
{
            jScrollPane1=new JScrollPane();
            pnlMalt.add(jScrollPane1,BorderLayout.CENTER);
{
              tblMaltModel=new MaltTableModel(this);
              tblMalt=new JTable();
              jScrollPane1.setViewportView(tblMalt);
              BorderLayout tblMaltLayout=new BorderLayout();
              tblMalt.setLayout(tblMaltLayout);
              tblMalt.setModel(tblMaltModel);
              TableColumn maltColumn=tblMalt.getColumnModel().getColumn(0);
              JComboBox maltComboBox=new JComboBox();
              cmbMaltModel=new ComboModel();
              maltComboBox.setModel(cmbMaltModel);
              maltColumn.setCellEditor(new DefaultCellEditor(maltComboBox));
              maltComboBox.addActionListener(new ActionListener(){
                public void actionPerformed(                ActionEvent evt){
                  Fermentable f=(Fermentable)cmbMaltModel.getSelectedItem();
                  int i=tblMalt.getSelectedRow();
                  if (myRecipe != null) {
                    Fermentable f2=(Fermentable)myRecipe.getFermentablesList().get(i);
                    f2.setLov(f.getLov());
                    f2.setPppg(f.getPppg());
                  }
                }
              }
);
            }
          }
{
            tblMaltTotalsModel=new DefaultTableModel(new String[][]{{"String_Node_Str"}},new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
            tblMaltTotals=new JTable();
            pnlMalt.add(tblMaltTotals,BorderLayout.SOUTH);
            tblMaltTotals.setModel(tblMaltTotalsModel);
            tblMaltTotals.getTableHeader().setEnabled(false);
          }
        }
{
          pnlHops=new JPanel();
          BorderLayout pnlHopsLayout=new BorderLayout();
          pnlHops.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),1,false),"String_Node_Str",TitledBorder.LEADING,TitledBorder.TOP,new java.awt.Font("String_Node_Str",1,12),new java.awt.Color(51,51,51)));
          pnlHops.setLayout(pnlHopsLayout);
          pnlTables.add(pnlHops);
{
            tblHopsTotalsModel=new DefaultTableModel(new String[][]{{"String_Node_Str"}},new String[]{"String_Node_Str","String_Node_Str"});
            tblHopsTotals=new JTable();
            pnlHops.add(tblHopsTotals,BorderLayout.SOUTH);
            tblHopsTotals.setModel(tblHopsTotalsModel);
          }
{
            jScrollPane2=new JScrollPane();
            pnlHops.add(jScrollPane2,BorderLayout.CENTER);
{
              tblHopsModel=new HopsTableModel(this);
              tblHops=new JTable();
              jScrollPane2.setViewportView(tblHops);
              BorderLayout tblHopsLayout=new BorderLayout();
              tblHops.setLayout(tblHopsLayout);
              tblHops.setModel(tblHopsModel);
              TableColumn hopColumn=tblHops.getColumnModel().getColumn(0);
              JComboBox hopComboBox=new JComboBox();
              cmbHopsModel=new ComboModel();
              hopComboBox.setModel(cmbHopsModel);
              hopColumn.setCellEditor(new DefaultCellEditor(hopComboBox));
            }
          }
        }
      }
    }
{
      jMenuBar1=new JMenuBar();
      setJMenuBar(jMenuBar1);
{
        jMenu3=new JMenu();
        jMenuBar1.add(jMenu3);
        jMenu3.setText("String_Node_Str");
{
          newFileMenuItem=new JMenuItem();
          jMenu3.add(newFileMenuItem);
          newFileMenuItem.setText("String_Node_Str");
        }
{
          openFileMenuItem=new JMenuItem();
          jMenu3.add(openFileMenuItem);
          openFileMenuItem.setText("String_Node_Str");
          openFileMenuItem.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              String path=getClass().getProtectionDomain().getCodeSource().getLocation().toString().substring(6) + "String_Node_Str";
              JFileChooser fc=new JFileChooser(path);
              int returnVal=fc.showOpenDialog(jMenuBar1);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file=fc.getSelectedFile();
                System.out.print("String_Node_Str" + file.getName() + "String_Node_Str");
                ImportXml imp=new ImportXml(file.toString());
                myRecipe=imp.handler.getRecipe();
                myRecipe.calcMaltTotals();
                myRecipe.calcHopsTotals();
                myRecipe.mash.setMaltWeight(myRecipe.getTotalMashLbs());
                myRecipe.mash.calcMashSchedule();
                displayRecipe();
              }
 else {
                System.out.print("String_Node_Str");
              }
            }
          }
);
        }
{
          saveMenuItem=new JMenuItem();
          jMenu3.add(saveMenuItem);
          saveMenuItem.setText("String_Node_Str");
        }
{
          saveAsMenuItem=new JMenuItem();
          jMenu3.add(saveAsMenuItem);
          saveAsMenuItem.setText("String_Node_Str");
          saveAsMenuItem.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              System.out.print(myRecipe.toText());
            }
          }
);
        }
{
          exportMenu=new JMenu();
          jMenu3.add(exportMenu);
          exportMenu.setText("String_Node_Str");
{
            exportHTMLmenu=new JMenuItem();
            exportMenu.add(exportHTMLmenu);
            exportHTMLmenu.setText("String_Node_Str");
            exportHTMLmenu.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                try {
                  saveAsHTML();
                }
 catch (                Exception e) {
                }
              }
            }
);
          }
        }
{
          closeFileMenuItem=new JMenuItem();
          jMenu3.add(closeFileMenuItem);
          closeFileMenuItem.setText("String_Node_Str");
        }
{
          jSeparator2=new JSeparator();
          jMenu3.add(jSeparator2);
        }
{
          exitMenuItem=new JMenuItem();
          jMenu3.add(exitMenuItem);
          exitMenuItem.setText("String_Node_Str");
          exitMenuItem.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              System.exit(0);
            }
          }
);
        }
      }
{
        jMenu4=new JMenu();
        jMenuBar1.add(jMenu4);
        jMenu4.setText("String_Node_Str");
{
          cutMenuItem=new JMenuItem();
          jMenu4.add(cutMenuItem);
          cutMenuItem.setText("String_Node_Str");
        }
{
          copyMenuItem=new JMenuItem();
          jMenu4.add(copyMenuItem);
          copyMenuItem.setText("String_Node_Str");
        }
{
          pasteMenuItem=new JMenuItem();
          jMenu4.add(pasteMenuItem);
          pasteMenuItem.setText("String_Node_Str");
        }
{
          jSeparator1=new JSeparator();
          jMenu4.add(jSeparator1);
        }
{
          deleteMenuItem=new JMenuItem();
          jMenu4.add(deleteMenuItem);
          deleteMenuItem.setText("String_Node_Str");
        }
      }
{
        jMenu5=new JMenu();
        jMenuBar1.add(jMenu5);
        jMenu5.setText("String_Node_Str");
{
          helpMenuItem=new JMenuItem();
          jMenu5.add(helpMenuItem);
          helpMenuItem.setText("String_Node_Str");
        }
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void initGUI(){
  try {
    this.setSize(520,532);
    this.addWindowListener(new WindowAdapter(){
      public void windowClosed(      WindowEvent evt){
        System.exit(1);
      }
    }
);
{
      pnlMain=new JPanel();
      GridBagLayout jPanel2Layout=new GridBagLayout();
      jPanel2Layout.columnWeights=new double[]{0.1};
      jPanel2Layout.columnWidths=new int[]{7};
      jPanel2Layout.rowWeights=new double[]{0.1,0.1,0.1};
      jPanel2Layout.rowHeights=new int[]{7,7,7};
      pnlMain.setLayout(jPanel2Layout);
      this.getContentPane().add(pnlMain,BorderLayout.CENTER);
{
        jPanel1=new JPanel();
        pnlMain.add(jPanel1,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
        FlowLayout jPanel1Layout=new FlowLayout();
        jPanel1Layout.setAlignment(FlowLayout.LEFT);
        jPanel1.setLayout(jPanel1Layout);
{
          lblName=new JLabel();
          jPanel1.add(lblName);
          lblName.setText("String_Node_Str");
        }
{
          txtName=new JTextField();
          jPanel1.add(txtName);
          txtName.setText("String_Node_Str");
          txtName.setPreferredSize(new java.awt.Dimension(179,20));
          txtName.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              myRecipe.setName(txtName.getText());
            }
          }
);
        }
      }
{
        jTabbedPane1=new JTabbedPane();
        pnlMain.add(jTabbedPane1,new GridBagConstraints(0,1,1,1,0.1,0.1,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
{
          pnlDetails=new JPanel();
          GridBagLayout pnlDetailsLayout=new GridBagLayout();
          pnlDetailsLayout.columnWeights=new double[]{0.1,0.1,0.1,0.1,0.1,0.1,0.1};
          pnlDetailsLayout.columnWidths=new int[]{7,7,7,7,7,7,7};
          pnlDetailsLayout.rowWeights=new double[]{0.1,0.1,0.1,0.1,0.1,0.1,0.1};
          pnlDetailsLayout.rowHeights=new int[]{7,7,7,7,7,7,7};
          pnlDetails.setLayout(pnlDetailsLayout);
          jTabbedPane1.addTab("String_Node_Str",null,pnlDetails,null);
{
            lblBrewer=new JLabel();
            pnlDetails.add(lblBrewer,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblBrewer.setText("String_Node_Str");
          }
{
            txtBrewer=new JTextField();
            pnlDetails.add(txtBrewer,new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtBrewer.setText("String_Node_Str");
            txtBrewer.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                myRecipe.setBrewer(txtBrewer.getText());
              }
            }
);
          }
{
            lblDate=new JLabel();
            pnlDetails.add(lblDate,new GridBagConstraints(0,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblDate.setText("String_Node_Str");
          }
{
            lblStyle=new JLabel();
            pnlDetails.add(lblStyle,new GridBagConstraints(0,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblStyle.setText("String_Node_Str");
          }
{
            lblYeast=new JLabel();
            pnlDetails.add(lblYeast,new GridBagConstraints(0,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblYeast.setText("String_Node_Str");
          }
{
            lblPreBoil=new JLabel();
            pnlDetails.add(lblPreBoil,new GridBagConstraints(0,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblPreBoil.setText("String_Node_Str");
          }
{
            lblPostBoil=new JLabel();
            pnlDetails.add(lblPostBoil,new GridBagConstraints(0,5,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblPostBoil.setText("String_Node_Str");
          }
{
            lblMash=new JLabel();
            pnlDetails.add(lblMash,new GridBagConstraints(0,6,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblMash.setText("String_Node_Str");
          }
{
            lblEffic=new JLabel();
            pnlDetails.add(lblEffic,new GridBagConstraints(3,0,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblEffic.setText("String_Node_Str");
          }
{
            lblAtten=new JLabel();
            pnlDetails.add(lblAtten,new GridBagConstraints(3,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblAtten.setText("String_Node_Str");
          }
{
            lblOG=new JLabel();
            pnlDetails.add(lblOG,new GridBagConstraints(3,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblOG.setText("String_Node_Str");
          }
{
            lblFG=new JLabel();
            pnlDetails.add(lblFG,new GridBagConstraints(3,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblFG.setText("String_Node_Str");
          }
{
            lblIBU=new JLabel();
            pnlDetails.add(lblIBU,new GridBagConstraints(5,0,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblIBU.setText("String_Node_Str");
          }
{
            lblAlc=new JLabel();
            pnlDetails.add(lblAlc,new GridBagConstraints(5,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblAlc.setText("String_Node_Str");
          }
{
            lblColour=new JLabel();
            pnlDetails.add(lblColour,new GridBagConstraints(5,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblColour.setText("String_Node_Str");
          }
{
            txtDate=new JTextField();
            pnlDetails.add(txtDate,new GridBagConstraints(1,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtDate.setText("String_Node_Str");
          }
{
            cmbStyleModel=new ComboModel();
            cmbStyle=new JComboBox();
            pnlDetails.add(cmbStyle,new GridBagConstraints(1,2,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            cmbStyle.setModel(cmbStyleModel);
            cmbStyle.setMaximumSize(new java.awt.Dimension(100,32767));
            cmbStyle.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                Style s=(Style)cmbStyleModel.getSelectedItem();
                if (myRecipe != null && s != myRecipe.getStyleObj()) {
                  myRecipe.setStyle(s);
                }
              }
            }
);
          }
{
            txtPreBoil=new JFormattedTextField();
            pnlDetails.add(txtPreBoil,new GridBagConstraints(1,4,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtPreBoil.setText("String_Node_Str");
            txtPreBoil.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                myRecipe.setPreBoil(Double.parseDouble(txtPreBoil.getText().toString()));
                displayRecipe();
              }
            }
);
          }
{
            txtPostBoil=new JFormattedTextField();
            pnlDetails.add(txtPostBoil,new GridBagConstraints(1,5,1,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            txtPostBoil.setText("String_Node_Str");
            txtPostBoil.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                System.out.println("String_Node_Str" + evt);
                myRecipe.setPostBoil(Double.parseDouble(txtPostBoil.getText().toString()));
                displayRecipe();
              }
            }
);
          }
{
            lblComments=new JLabel();
            pnlDetails.add(lblComments,new GridBagConstraints(3,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblComments.setText("String_Node_Str");
          }
{
            SpinnerNumberModel spnEfficModel=new SpinnerNumberModel(75.0,0.0,100.0,1.0);
            spnEffic=new JSpinner();
            pnlDetails.add(spnEffic,new GridBagConstraints(4,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnEffic.setModel(spnEfficModel);
            spnEffic.setMaximumSize(new java.awt.Dimension(70,32767));
            spnEffic.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setEfficiency(Double.parseDouble(spnEffic.getValue().toString()));
                displayRecipe();
              }
            }
);
            spnEffic.setEditor(new JSpinner.NumberEditor(spnEffic,"String_Node_Str"));
          }
{
            SpinnerNumberModel spnAttenModel=new SpinnerNumberModel(75.0,0.0,100.0,1.0);
            spnAtten=new JSpinner();
            pnlDetails.add(spnAtten,new GridBagConstraints(4,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnAtten.setModel(spnAttenModel);
            spnAtten.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setAttenuation(Double.parseDouble(spnAtten.getValue().toString()));
                displayRecipe();
              }
            }
);
            spnAtten.setEditor(new JSpinner.NumberEditor(spnAtten,"String_Node_Str"));
          }
{
            SpinnerNumberModel spnOgModel=new SpinnerNumberModel(1.000,0.900,2.000,0.001);
            spnOG=new JSpinner();
            pnlDetails.add(spnOG,new GridBagConstraints(4,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnOG.setModel(spnOgModel);
            spnOG.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setEstOg(Double.parseDouble(spnOG.getValue().toString()));
                displayRecipe();
              }
            }
);
            spnOG.setEditor(new JSpinner.NumberEditor(spnOG,"String_Node_Str"));
          }
{
            SpinnerNumberModel spnFgModel=new SpinnerNumberModel(1.000,0.900,2.000,0.001);
            spnFG=new JSpinner();
            pnlDetails.add(spnFG,new GridBagConstraints(4,3,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            spnFG.setModel(spnFgModel);
            spnFG.setEditor(new JSpinner.NumberEditor(spnFG,"String_Node_Str"));
            spnFG.addChangeListener(new ChangeListener(){
              public void stateChanged(              ChangeEvent evt){
                myRecipe.setEstFg(Double.parseDouble(spnFG.getValue().toString()));
                displayRecipe();
              }
            }
);
          }
{
            lblIBUvalue=new JLabel();
            pnlDetails.add(lblIBUvalue,new GridBagConstraints(6,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblIBUvalue.setText("String_Node_Str");
          }
{
            lblColourValue=new JLabel();
            pnlDetails.add(lblColourValue,new GridBagConstraints(6,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblColourValue.setText("String_Node_Str");
          }
{
            lblAlcValue=new JLabel();
            pnlDetails.add(lblAlcValue,new GridBagConstraints(6,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblAlcValue.setText("String_Node_Str");
          }
{
            scpComments=new JScrollPane();
            pnlDetails.add(scpComments,new GridBagConstraints(3,5,4,2,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
{
              txtComments=new JTextArea();
              scpComments.setViewportView(txtComments);
              txtComments.setText("String_Node_Str");
              txtComments.setWrapStyleWord(true);
              txtComments.addFocusListener(new FocusAdapter(){
                public void focusLost(                FocusEvent evt){
                  if (!txtComments.getText().equals(myRecipe.getComments())) {
                    myRecipe.setComments(txtComments.getText());
                  }
                }
              }
);
            }
          }
{
            cmbYeastModel=new ComboModel();
            cmbYeast=new JComboBox();
            pnlDetails.add(cmbYeast,new GridBagConstraints(1,3,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,0),0,0));
            cmbYeast.setModel(cmbYeastModel);
            cmbYeast.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                Yeast y=(Yeast)cmbYeastModel.getSelectedItem();
                if (myRecipe != null && y != myRecipe.getYeastObj()) {
                  myRecipe.setYeast(y);
                }
              }
            }
);
          }
{
            ComboBoxModel cmbSizeUnitsModel=new DefaultComboBoxModel(new String[]{"String_Node_Str","String_Node_Str"});
            cmbSizeUnits=new JComboBox();
            pnlDetails.add(cmbSizeUnits,new GridBagConstraints(2,4,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            cmbSizeUnits.setModel(cmbSizeUnitsModel);
          }
{
            lblSizeUnits=new JLabel();
            pnlDetails.add(lblSizeUnits,new GridBagConstraints(2,5,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
            lblSizeUnits.setText("String_Node_Str");
          }
        }
{
          pnlStyle=new JPanel();
          FlowLayout pnlStyleLayout=new FlowLayout();
          pnlStyle.setLayout(pnlStyleLayout);
          jTabbedPane1.addTab("String_Node_Str",null,pnlStyle,null);
{
            lblStyle2=new JLabel();
            pnlStyle.add(lblStyle2);
            lblStyle2.setText("String_Node_Str");
          }
{
            ComboBoxModel cmbStyle2Model=new DefaultComboBoxModel(new String[]{"String_Node_Str","String_Node_Str"});
            cmbStyle2=new JComboBox();
            pnlStyle.add(cmbStyle2);
            cmbStyle2.setModel(cmbStyle2Model);
          }
{
            jPanel2=new JPanel();
            GridBagLayout jPanel2Layout1=new GridBagLayout();
            jPanel2Layout1.columnWeights=new double[]{0.1,0.1,0.1,0.1};
            jPanel2Layout1.columnWidths=new int[]{7,7,7,7};
            jPanel2Layout1.rowWeights=new double[]{0.1,0.1,0.1,0.1,0.1,0.1};
            jPanel2Layout1.rowHeights=new int[]{7,7,7,7,7,7};
            jPanel2.setPreferredSize(new java.awt.Dimension(179,120));
            jPanel2.setLayout(jPanel2Layout1);
            pnlStyle.add(jPanel2);
            jPanel2.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),1,false),"String_Node_Str",TitledBorder.LEADING,TitledBorder.TOP,new java.awt.Font("String_Node_Str",0,12),new java.awt.Color(0,0,0)));
{
              jLabel5=new JLabel();
              jPanel2.add(jLabel5,new GridBagConstraints(0,4,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel5.setText("String_Node_Str");
              jLabel5.setBounds(74,3,60,30);
            }
{
              jLabel1=new JLabel();
              jPanel2.add(jLabel1,new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              GridLayout jLabel1Layout=new GridLayout(1,1);
              jLabel1.setLayout(jLabel1Layout);
              jLabel1.setText("String_Node_Str");
            }
{
              jLabel2=new JLabel();
              jPanel2.add(jLabel2,new GridBagConstraints(2,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel2.setText("String_Node_Str");
            }
{
              jLabel3=new JLabel();
              jPanel2.add(jLabel3,new GridBagConstraints(3,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel3.setText("String_Node_Str");
            }
{
              jLabel4=new JLabel();
              jPanel2.add(jLabel4,new GridBagConstraints(0,1,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel4.setText("String_Node_Str");
            }
{
              jLabel6=new JLabel();
              jPanel2.add(jLabel6,new GridBagConstraints(0,2,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel6.setText("String_Node_Str");
            }
{
              jLabel7=new JLabel();
              jPanel2.add(jLabel7,new GridBagConstraints(0,3,1,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
              jLabel7.setText("String_Node_Str");
            }
          }
{
            jScrollPane3=new JScrollPane();
            pnlStyle.add(jScrollPane3);
{
              txaStyles=new JTextArea();
              jScrollPane3.setViewportView(txaStyles);
              txaStyles.setText("String_Node_Str");
            }
          }
{
            sldMatch=new JSlider();
            pnlStyle.add(sldMatch);
          }
        }
      }
{
        pnlTables=new JPanel();
        BoxLayout pnlMaltsLayout=new BoxLayout(pnlTables,javax.swing.BoxLayout.Y_AXIS);
        pnlMain.add(pnlTables,new GridBagConstraints(0,2,1,1,0.5,0.5,GridBagConstraints.CENTER,GridBagConstraints.BOTH,new Insets(0,0,0,0),0,0));
        pnlTables.setLayout(pnlMaltsLayout);
{
          pnlMalt=new JPanel();
          pnlTables.add(pnlMalt);
          BorderLayout pnlMaltLayout1=new BorderLayout();
          FlowLayout pnlMaltLayout=new FlowLayout();
          pnlMalt.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),1,false),"String_Node_Str",TitledBorder.LEADING,TitledBorder.TOP,new java.awt.Font("String_Node_Str",1,12),new java.awt.Color(51,51,51)));
          pnlMalt.setLayout(pnlMaltLayout1);
{
            jScrollPane1=new JScrollPane();
            pnlMalt.add(jScrollPane1,BorderLayout.CENTER);
{
              tblMaltModel=new MaltTableModel(this);
              tblMalt=new JTable();
              jScrollPane1.setViewportView(tblMalt);
              tblMalt.setModel(tblMaltModel);
              TableColumn maltColumn=tblMalt.getColumnModel().getColumn(0);
              JComboBox maltComboBox=new JComboBox();
              cmbMaltModel=new ComboModel();
              maltComboBox.setModel(cmbMaltModel);
              maltColumn.setCellEditor(new DefaultCellEditor(maltComboBox));
              maltColumn=tblMalt.getColumnModel().getColumn(1);
              JSpinner maltSpin=new JSpinner();
              maltColumn.setCellEditor(new SpinnerEditor());
              for (int i=0; i < tblMalt.getColumnCount(); i++) {
                TableColumn column;
                column=tblMalt.getColumnModel().getColumn(i);
                if (i == 0) {
                  column.setPreferredWidth(100);
                }
 else {
                  column.setPreferredWidth(50);
                }
              }
              maltComboBox.addActionListener(new ActionListener(){
                public void actionPerformed(                ActionEvent evt){
                  Fermentable f=(Fermentable)cmbMaltModel.getSelectedItem();
                  int i=tblMalt.getSelectedRow();
                  if (myRecipe != null) {
                    Fermentable f2=(Fermentable)myRecipe.getFermentablesList().get(i);
                    f2.setLov(f.getLov());
                    f2.setPppg(f.getPppg());
                  }
                }
              }
);
            }
          }
{
            tblMaltTotalsModel=new DefaultTableModel(new String[][]{{"String_Node_Str"}},new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
            tblMaltTotals=new JTable();
            pnlMalt.add(tblMaltTotals,BorderLayout.SOUTH);
            tblMaltTotals.setModel(tblMaltTotalsModel);
            tblMaltTotals.getTableHeader().setEnabled(false);
          }
        }
{
          pnlHops=new JPanel();
          BorderLayout pnlHopsLayout=new BorderLayout();
          pnlHops.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),1,false),"String_Node_Str",TitledBorder.LEADING,TitledBorder.TOP,new java.awt.Font("String_Node_Str",1,12),new java.awt.Color(51,51,51)));
          pnlHops.setLayout(pnlHopsLayout);
          pnlTables.add(pnlHops);
{
            tblHopsTotalsModel=new DefaultTableModel(new String[][]{{"String_Node_Str"}},new String[]{"String_Node_Str","String_Node_Str"});
            tblHopsTotals=new JTable();
            pnlHops.add(tblHopsTotals,BorderLayout.SOUTH);
            tblHopsTotals.setModel(tblHopsTotalsModel);
          }
{
            jScrollPane2=new JScrollPane();
            pnlHops.add(jScrollPane2,BorderLayout.CENTER);
{
              tblHopsModel=new HopsTableModel(this);
              tblHops=new JTable();
              jScrollPane2.setViewportView(tblHops);
              BorderLayout tblHopsLayout=new BorderLayout();
              tblHops.setLayout(tblHopsLayout);
              tblHops.setModel(tblHopsModel);
              TableColumn hopColumn=tblHops.getColumnModel().getColumn(0);
              JComboBox hopComboBox=new JComboBox();
              cmbHopsModel=new ComboModel();
              hopComboBox.setModel(cmbHopsModel);
              hopColumn.setCellEditor(new DefaultCellEditor(hopComboBox));
            }
          }
        }
      }
    }
{
      jMenuBar1=new JMenuBar();
      setJMenuBar(jMenuBar1);
{
        jMenu3=new JMenu();
        jMenuBar1.add(jMenu3);
        jMenu3.setText("String_Node_Str");
{
          newFileMenuItem=new JMenuItem();
          jMenu3.add(newFileMenuItem);
          newFileMenuItem.setText("String_Node_Str");
        }
{
          openFileMenuItem=new JMenuItem();
          jMenu3.add(openFileMenuItem);
          openFileMenuItem.setText("String_Node_Str");
          openFileMenuItem.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              String path=getClass().getProtectionDomain().getCodeSource().getLocation().toString().substring(6) + "String_Node_Str";
              JFileChooser fc=new JFileChooser(path);
              int returnVal=fc.showOpenDialog(jMenuBar1);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
                File file=fc.getSelectedFile();
                System.out.print("String_Node_Str" + file.getName() + "String_Node_Str");
                ImportXml imp=new ImportXml(file.toString());
                myRecipe=imp.handler.getRecipe();
                myRecipe.calcMaltTotals();
                myRecipe.calcHopsTotals();
                myRecipe.mash.setMaltWeight(myRecipe.getTotalMashLbs());
                myRecipe.mash.calcMashSchedule();
                displayRecipe();
              }
 else {
                System.out.print("String_Node_Str");
              }
            }
          }
);
        }
{
          saveMenuItem=new JMenuItem();
          jMenu3.add(saveMenuItem);
          saveMenuItem.setText("String_Node_Str");
        }
{
          saveAsMenuItem=new JMenuItem();
          jMenu3.add(saveAsMenuItem);
          saveAsMenuItem.setText("String_Node_Str");
          saveAsMenuItem.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              System.out.print(myRecipe.toText());
            }
          }
);
        }
{
          exportMenu=new JMenu();
          jMenu3.add(exportMenu);
          exportMenu.setText("String_Node_Str");
{
            exportHTMLmenu=new JMenuItem();
            exportMenu.add(exportHTMLmenu);
            exportHTMLmenu.setText("String_Node_Str");
            exportHTMLmenu.addActionListener(new ActionListener(){
              public void actionPerformed(              ActionEvent evt){
                try {
                  saveAsHTML();
                }
 catch (                Exception e) {
                }
              }
            }
);
          }
        }
{
          closeFileMenuItem=new JMenuItem();
          jMenu3.add(closeFileMenuItem);
          closeFileMenuItem.setText("String_Node_Str");
        }
{
          jSeparator2=new JSeparator();
          jMenu3.add(jSeparator2);
        }
{
          exitMenuItem=new JMenuItem();
          jMenu3.add(exitMenuItem);
          exitMenuItem.setText("String_Node_Str");
          exitMenuItem.addActionListener(new ActionListener(){
            public void actionPerformed(            ActionEvent evt){
              System.exit(0);
            }
          }
);
        }
      }
{
        jMenu4=new JMenu();
        jMenuBar1.add(jMenu4);
        jMenu4.setText("String_Node_Str");
{
          cutMenuItem=new JMenuItem();
          jMenu4.add(cutMenuItem);
          cutMenuItem.setText("String_Node_Str");
        }
{
          copyMenuItem=new JMenuItem();
          jMenu4.add(copyMenuItem);
          copyMenuItem.setText("String_Node_Str");
        }
{
          pasteMenuItem=new JMenuItem();
          jMenu4.add(pasteMenuItem);
          pasteMenuItem.setText("String_Node_Str");
        }
{
          jSeparator1=new JSeparator();
          jMenu4.add(jSeparator1);
        }
{
          deleteMenuItem=new JMenuItem();
          jMenu4.add(deleteMenuItem);
          deleteMenuItem.setText("String_Node_Str");
        }
      }
{
        jMenu5=new JMenu();
        jMenuBar1.add(jMenu5);
        jMenu5.setText("String_Node_Str");
{
          helpMenuItem=new JMenuItem();
          jMenu5.add(helpMenuItem);
          helpMenuItem.setText("String_Node_Str");
        }
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}