Program: 147173
Project: 147173
Buggy source:
/** 
 * Creates new form JPlotterPanel
 */
public JPlotterPanel(){
  initComponents();
  domainFormatter.setValueClass(java.lang.Double.class);
  rangeFormatter.setValueClass(java.lang.Double.class);
  jDomainStartTextField.setValue(0.0);
  jDomainStartTextField.addActionListener(new handleReturnAction(jDomainStartTextField));
  jDomainEndTextField.setValue(1.0);
  jDomainEndTextField.addActionListener(new handleReturnAction(jDomainEndTextField));
  jFormattedTextFieldYmin.setValue(-10000.0);
  jFormattedTextFieldYmin.addActionListener(new handleReturnAction(jFormattedTextFieldYmin));
  jFormattedTextFieldYmax.setValue(10000.0);
  jFormattedTextFieldYmax.addActionListener(new handleReturnAction(jFormattedTextFieldYmax));
  jActivationValueFormattedTextField.setValue(1.0);
  jActivationValueFormattedTextField.addActionListener(new handleReturnAction(jActivationValueFormattedTextField));
  jTopChartingPanel.setLayout(new BorderLayout());
  xSelector=new JPlotterQuantitySelector(jXQtyTextField,this,true);
  jPlotsTree.addTreeSelectionListener(this);
  jPlotsTree.setEditable(true);
  jPlotsTree.setCellEditor(new UserTreeCellEditor(jPlotsTree,new DefaultTreeCellRenderer()));
  jPlotterDeletePlotButton.setEnabled(false);
  jPlotterAddPlotButton.setEnabled(validateXY());
  jTopChartingPanel.add(plotterModel.getCurrentPlot().getChartPanel());
  jPropertiesButton.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      plotterModel.getCurrentPlot().getChartPanel().doEditChartProperties();
    }
  }
);
  processCurrentModel();
  useMuscles(false);
  jPlotsTree.setRootVisible(false);
  PlotterDB.getInstance().registerPlotterPanel(this);
}

Fixed version (ground truth):
/** 
 * Creates new form JPlotterPanel
 */
public JPlotterPanel(){
  initComponents();
  domainFormatter.setValueClass(java.lang.Double.class);
  rangeFormatter.setValueClass(java.lang.Double.class);
  jDomainStartTextField.setValue(0.0);
  jDomainStartTextField.addActionListener(new handleReturnAction(jDomainStartTextField));
  jDomainEndTextField.setValue(1.0);
  jDomainEndTextField.addActionListener(new handleReturnAction(jDomainEndTextField));
  jFormattedTextFieldYmin.setValue(-10000.0);
  jFormattedTextFieldYmin.addActionListener(new handleReturnAction(jFormattedTextFieldYmin));
  jFormattedTextFieldYmax.setValue(10000.0);
  jFormattedTextFieldYmax.addActionListener(new handleReturnAction(jFormattedTextFieldYmax));
  jActivationValueFormattedTextField.setValue(1.0);
  jActivationValueFormattedTextField.addActionListener(new handleReturnAction(jActivationValueFormattedTextField));
  jTopChartingPanel.setLayout(new BorderLayout());
  xSelector=new JPlotterQuantitySelector(jXQtyTextField,this,true);
  jPlotsTree.addTreeSelectionListener(this);
  jPlotsTree.setEditable(true);
  jPlotsTree.setCellEditor(new UserTreeCellEditor(jPlotsTree,new DefaultTreeCellRenderer()));
  jPlotterDeletePlotButton.setEnabled(false);
  jPlotterAddPlotButton.setEnabled(validateXY());
  jTopChartingPanel.add(plotterModel.getCurrentPlot().getChartPanel());
  jPropertiesButton.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      plotterModel.getCurrentPlot().getChartPanel().doEditChartProperties();
    }
  }
);
  processCurrentModel();
  useMuscles(false);
  jPlotsTree.setRootVisible(false);
  PlotterDB.getInstance().registerPlotterPanel(this);
  populateQNameSet();
}