Program: 20370
Project: 20370
Buggy source:
/** 
 * Creates new form JEditProduct 
 */
public ProductsEditor(DataLogicSales dlSales,DirtyManager dirty){
  initComponents();
  taxsent=dlSales.getTaxList();
  m_sentcat=dlSales.getCategoriesList();
  m_CategoryModel=new ComboBoxValModel();
  taxcatsent=dlSales.getTaxCategoriesList();
  taxcatmodel=new ComboBoxValModel();
  m_CodetypeModel=new ComboBoxValModel();
  m_CodetypeModel.add(null);
  m_CodetypeModel.add(CodeType.EAN13);
  m_CodetypeModel.add(CodeType.CODE128);
  m_jCodetype.setModel(m_CodetypeModel);
  m_jCodetype.setVisible(false);
  m_jRef.getDocument().addDocumentListener(dirty);
  m_jCode.getDocument().addDocumentListener(dirty);
  m_jName.getDocument().addDocumentListener(dirty);
  m_jComment.addActionListener(dirty);
  m_jScale.addActionListener(dirty);
  m_jCategory.addActionListener(dirty);
  m_jTax.addActionListener(dirty);
  m_jPriceBuy.getDocument().addDocumentListener(dirty);
  m_jPriceSell.getDocument().addDocumentListener(dirty);
  m_jImage.addPropertyChangeListener("String_Node_Str",dirty);
  m_jstockcost.getDocument().addDocumentListener(dirty);
  m_jstockvolume.getDocument().addDocumentListener(dirty);
  m_jInCatalog.addActionListener(dirty);
  m_jCatalogOrder.getDocument().addDocumentListener(dirty);
  txtAttributes.getDocument().addDocumentListener(dirty);
  FieldsManager fm=new FieldsManager();
  m_jPriceBuy.getDocument().addDocumentListener(fm);
  m_jPriceSell.getDocument().addDocumentListener(fm);
  m_jTax.addActionListener(fm);
  m_jPriceSellTax.getDocument().addDocumentListener(new PriceTaxManager());
  m_jmargin.getDocument().addDocumentListener(new MarginManager());
  writeValueEOF();
}

Fixed version (ground truth):
/** 
 * Creates new form JEditProduct 
 */
public ProductsEditor(DataLogicSales dlSales,DirtyManager dirty){
  initComponents();
  taxsent=dlSales.getTaxList();
  m_sentcat=dlSales.getCategoriesList();
  m_CategoryModel=new ComboBoxValModel();
  taxcatsent=dlSales.getTaxCategoriesList();
  taxcatmodel=new ComboBoxValModel();
  m_CodetypeModel=new ComboBoxValModel();
  m_CodetypeModel.add(null);
  m_CodetypeModel.add(CodeType.EAN13);
  m_CodetypeModel.add(CodeType.CODE128);
  m_jCodetype.setModel(m_CodetypeModel);
  m_jCodetype.setVisible(false);
  m_jRef.getDocument().addDocumentListener(dirty);
  m_jCode.getDocument().addDocumentListener(dirty);
  m_jName.getDocument().addDocumentListener(dirty);
  m_jComment.addActionListener(dirty);
  m_jScale.addActionListener(dirty);
  m_jCategory.addActionListener(dirty);
  m_jTax.addActionListener(dirty);
  m_jPriceBuy.getDocument().addDocumentListener(dirty);
  m_jPriceSell.getDocument().addDocumentListener(dirty);
  m_jImage.addPropertyChangeListener("String_Node_Str",dirty);
  m_jstockcost.getDocument().addDocumentListener(dirty);
  m_jstockvolume.getDocument().addDocumentListener(dirty);
  m_jInCatalog.addActionListener(dirty);
  m_jCatalogOrder.getDocument().addDocumentListener(dirty);
  txtAttributes.getDocument().addDocumentListener(dirty);
  FieldsManager fm=new FieldsManager();
  m_jPriceBuy.getDocument().addDocumentListener(fm);
  m_jPriceSell.getDocument().addDocumentListener(new PriceSellManager());
  m_jTax.addActionListener(fm);
  m_jPriceSellTax.getDocument().addDocumentListener(new PriceTaxManager());
  m_jmargin.getDocument().addDocumentListener(new MarginManager());
  writeValueEOF();
}