Program: 74524
Project: 74524
Buggy source:
protected void _createComponents(){
  getContentPane().removeAll();
  _tableModel=new DefaultTableModel(new Object[]{"String_Node_Str","String_Node_Str","String_Node_Str"},0){
    public boolean isCellEditable(    int row,    int column){
      if (column == 0) {
        return false;
      }
 else {
        return super.isCellEditable(row,column);
      }
    }
  }
;
  _table=new JTable(_tableModel);
  _table.setRowHeight(_ROW_HEIGHT);
  _table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  _table.setSelectionBackground(_SELECTED_COLOR);
  _table.setSelectionForeground(Color.BLACK);
  _table.addKeyListener(new KeyListener(){
    public void keyPressed(    KeyEvent e){
      if (e.getKeyCode() == KeyEvent.VK_ENTER) {
        commit();
      }
 else       if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
        cancel();
      }
    }
    public void keyReleased(    KeyEvent e){
    }
    public void keyTyped(    KeyEvent e){
    }
  }
);
  JTableHeader header=_table.getTableHeader();
  header.setFont(new Font("String_Node_Str",Font.BOLD,11));
  header.setForeground(Color.BLUE);
  header.setReorderingAllowed(false);
  DefaultTableCellRenderer renderer=(DefaultTableCellRenderer)header.getDefaultRenderer();
  renderer.setHorizontalAlignment(SwingConstants.CENTER);
  renderer.setPreferredSize(new Dimension(0,22));
  _editor=new IngredientContentEditor();
  TableColumnModel model=_table.getColumnModel();
  model.getColumn(1).setCellEditor(_editor);
  model.getColumn(1).setCellRenderer(_editor);
  model.getColumn(2).setCellEditor(_editor);
  model.getColumn(2).setCellRenderer(_editor);
  JScrollPane scrollPane=new JScrollPane(_table);
  getContentPane().add(scrollPane,BorderLayout.CENTER);
  JPanel bottomPanel=new JPanel(new BorderLayout());
  GridLayout gridLayout=new GridLayout();
  gridLayout.setHgap(5);
  JPanel helpPanel=new JPanel(gridLayout);
  helpPanel.setBorder(BorderFactory.createEmptyBorder(3,5,0,5));
  helpPanel.setPreferredSize(new Dimension(0,25));
  TableauFrame owner=_owner instanceof TableauFrame ? (TableauFrame)_owner : null;
  helpPanel.add(new HelpLabel("String_Node_Str",_NON_REGULAR_EXPRESSION_BACKGROUND));
  try {
    helpPanel.add(new HelpLabel("String_Node_Str",_REGULAR_EXPRESSION_BACKGROUND,new URL(_REGULAR_EXPRESSION_HELP_FILE),owner));
  }
 catch (  MalformedURLException e1) {
    helpPanel.add(new HelpLabel("String_Node_Str",_REGULAR_EXPRESSION_BACKGROUND));
  }
  helpPanel.add(new HelpLabel("String_Node_Str",_PTOLEMY_EXPRESSION_BACKGROUND,_PTOLEMY_EXPRESSION_HELP_FILE,owner));
  helpPanel.add(new HelpLabel("String_Node_Str",_DISABLED_BACKGROUND));
  bottomPanel.add(helpPanel,BorderLayout.NORTH);
  JPanel buttonsPanel=new JPanel();
  JButton addButton=new JButton("String_Node_Str");
  addButton.setActionCommand("String_Node_Str");
  addButton.addActionListener(this);
  buttonsPanel.add(addButton);
  JButton removeButton=new JButton("String_Node_Str");
  removeButton.setActionCommand("String_Node_Str");
  removeButton.addActionListener(this);
  buttonsPanel.add(removeButton);
  JButton commitButton=new JButton("String_Node_Str");
  commitButton.setActionCommand("String_Node_Str");
  commitButton.addActionListener(this);
  buttonsPanel.add(commitButton);
  getRootPane().setDefaultButton(commitButton);
  JButton applyButton=new JButton("String_Node_Str");
  applyButton.setActionCommand("String_Node_Str");
  applyButton.addActionListener(this);
  buttonsPanel.add(applyButton);
  JButton cancelButton=new JButton("String_Node_Str");
  cancelButton.setActionCommand("String_Node_Str");
  cancelButton.addActionListener(this);
  buttonsPanel.add(cancelButton);
  bottomPanel.add(buttonsPanel,BorderLayout.SOUTH);
  getContentPane().add(bottomPanel,BorderLayout.SOUTH);
  TableColumn column0=model.getColumn(0);
  column0.setMinWidth(10);
  column0.setPreferredWidth(15);
  column0.setMaxWidth(30);
  DefaultTableCellRenderer indexRenderer=new DefaultTableCellRenderer(){
    public Component getTableCellRendererComponent(    JTable table,    Object value,    boolean isSelected,    boolean hasFocus,    int row,    int column){
      return super.getTableCellRendererComponent(table,value,isSelected,false,row,column);
    }
  }
;
  indexRenderer.setHorizontalAlignment(SwingConstants.CENTER);
  column0.setCellRenderer(indexRenderer);
  model.getColumn(1).setPreferredWidth(150);
  model.getColumn(2).setPreferredWidth(550);
  setDefaultCloseOperation(DISPOSE_ON_CLOSE);
  addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      cancel();
    }
  }
);
  setPreferredSize(_PREFERRED_SIZE);
}

Fixed version (ground truth):
protected void _createComponents(){
  getContentPane().removeAll();
  _tableModel=new DefaultTableModel(new Object[]{"String_Node_Str","String_Node_Str","String_Node_Str"},0){
    public boolean isCellEditable(    int row,    int column){
      if (column == 0) {
        return false;
      }
 else {
        return super.isCellEditable(row,column);
      }
    }
  }
;
  _table=new JTable(_tableModel);
  _table.setRowHeight(_ROW_HEIGHT);
  _table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  _table.setSelectionBackground(_SELECTED_COLOR);
  _table.setSelectionForeground(Color.BLACK);
  _table.addKeyListener(new KeyListener(){
    public void keyPressed(    KeyEvent e){
      if (e.getKeyCode() == KeyEvent.VK_ENTER) {
        commit();
      }
 else       if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
        cancel();
      }
    }
    public void keyReleased(    KeyEvent e){
    }
    public void keyTyped(    KeyEvent e){
    }
  }
);
  _table.setEnabled(_attribute != null);
  JTableHeader header=_table.getTableHeader();
  header.setFont(new Font("String_Node_Str",Font.BOLD,11));
  header.setForeground(Color.BLUE);
  header.setReorderingAllowed(false);
  DefaultTableCellRenderer renderer=(DefaultTableCellRenderer)header.getDefaultRenderer();
  renderer.setHorizontalAlignment(SwingConstants.CENTER);
  renderer.setPreferredSize(new Dimension(0,22));
  _editor=new IngredientContentEditor();
  TableColumnModel model=_table.getColumnModel();
  model.getColumn(1).setCellEditor(_editor);
  model.getColumn(1).setCellRenderer(_editor);
  model.getColumn(2).setCellEditor(_editor);
  model.getColumn(2).setCellRenderer(_editor);
  JScrollPane scrollPane=new JScrollPane(_table);
  getContentPane().add(scrollPane,BorderLayout.CENTER);
  JPanel bottomPanel=new JPanel(new BorderLayout());
  GridLayout gridLayout=new GridLayout();
  gridLayout.setHgap(5);
  JPanel helpPanel=new JPanel(gridLayout);
  helpPanel.setBorder(BorderFactory.createEmptyBorder(3,5,0,5));
  helpPanel.setPreferredSize(new Dimension(0,25));
  TableauFrame owner=_owner instanceof TableauFrame ? (TableauFrame)_owner : null;
  helpPanel.add(new HelpLabel("String_Node_Str",_NON_REGULAR_EXPRESSION_BACKGROUND));
  try {
    helpPanel.add(new HelpLabel("String_Node_Str",_REGULAR_EXPRESSION_BACKGROUND,new URL(_REGULAR_EXPRESSION_HELP_FILE),owner));
  }
 catch (  MalformedURLException e1) {
    helpPanel.add(new HelpLabel("String_Node_Str",_REGULAR_EXPRESSION_BACKGROUND));
  }
  helpPanel.add(new HelpLabel("String_Node_Str",_PTOLEMY_EXPRESSION_BACKGROUND,_PTOLEMY_EXPRESSION_HELP_FILE,owner));
  helpPanel.add(new HelpLabel("String_Node_Str",_DISABLED_BACKGROUND));
  bottomPanel.add(helpPanel,BorderLayout.NORTH);
  JPanel buttonsPanel=new JPanel();
  JButton addButton=new JButton("String_Node_Str");
  addButton.setActionCommand("String_Node_Str");
  addButton.addActionListener(this);
  addButton.setEnabled(_attribute != null);
  buttonsPanel.add(addButton);
  JButton removeButton=new JButton("String_Node_Str");
  removeButton.setActionCommand("String_Node_Str");
  removeButton.addActionListener(this);
  removeButton.setEnabled(_attribute != null);
  buttonsPanel.add(removeButton);
  JButton commitButton=new JButton("String_Node_Str");
  commitButton.setActionCommand("String_Node_Str");
  commitButton.addActionListener(this);
  commitButton.setEnabled(_attribute != null);
  buttonsPanel.add(commitButton);
  getRootPane().setDefaultButton(commitButton);
  JButton applyButton=new JButton("String_Node_Str");
  applyButton.setActionCommand("String_Node_Str");
  applyButton.addActionListener(this);
  applyButton.setEnabled(_attribute != null);
  buttonsPanel.add(applyButton);
  JButton cancelButton=new JButton("String_Node_Str");
  cancelButton.setActionCommand("String_Node_Str");
  cancelButton.addActionListener(this);
  buttonsPanel.add(cancelButton);
  bottomPanel.add(buttonsPanel,BorderLayout.SOUTH);
  getContentPane().add(bottomPanel,BorderLayout.SOUTH);
  TableColumn column0=model.getColumn(0);
  column0.setMinWidth(10);
  column0.setPreferredWidth(15);
  column0.setMaxWidth(30);
  DefaultTableCellRenderer indexRenderer=new DefaultTableCellRenderer(){
    public Component getTableCellRendererComponent(    JTable table,    Object value,    boolean isSelected,    boolean hasFocus,    int row,    int column){
      return super.getTableCellRendererComponent(table,value,isSelected,false,row,column);
    }
  }
;
  indexRenderer.setHorizontalAlignment(SwingConstants.CENTER);
  column0.setCellRenderer(indexRenderer);
  model.getColumn(1).setPreferredWidth(150);
  model.getColumn(2).setPreferredWidth(550);
  setDefaultCloseOperation(DISPOSE_ON_CLOSE);
  addWindowListener(new WindowAdapter(){
    public void windowClosing(    WindowEvent e){
      cancel();
    }
  }
);
  setPreferredSize(_PREFERRED_SIZE);
}