Program: 187284
Project: 187284
Buggy source:
public UI(){
  container=getContentPane();
  setSize(700,500);
  setTitle("String_Node_Str" + SimpleJavaTextEditor.NAME);
  setDefaultCloseOperation(EXIT_ON_CLOSE);
  textArea=new JTextArea("String_Node_Str",0,0);
  textArea.setFont(new Font("String_Node_Str",Font.BOLD,12));
  textArea.setTabSize(2);
  textArea.setFont(new Font("String_Node_Str",Font.BOLD,12));
  textArea.setTabSize(2);
  textArea.setLineWrap(true);
  getContentPane().setLayout(new BorderLayout());
  getContentPane().add(textArea);
  menuFile=new JMenu("String_Node_Str");
  menuEdit=new JMenu("String_Node_Str");
  menuFind=new JMenu("String_Node_Str");
  menuAbout=new JMenu("String_Node_Str");
  newFile=new JMenuItem("String_Node_Str",newIcon);
  openFile=new JMenuItem("String_Node_Str",openIcon);
  saveFile=new JMenuItem("String_Node_Str",saveIcon);
  close=new JMenuItem("String_Node_Str",closeIcon);
  clearFile=new JMenuItem("String_Node_Str",clearIcon);
  quickFind=new JMenuItem("String_Node_Str",searchIcon);
  aboutMe=new JMenuItem("String_Node_Str",aboutMeIcon);
  aboutSoftware=new JMenuItem("String_Node_Str",aboutIcon);
  menuBar=new JMenuBar();
  menuBar.add(menuFile);
  menuBar.add(menuEdit);
  menuBar.add(menuFind);
  menuBar.add(menuAbout);
  this.setJMenuBar(menuBar);
  selectAllAction=new SelectAllAction("String_Node_Str",clearIcon,"String_Node_Str",new Integer(KeyEvent.VK_A),textArea);
  this.setJMenuBar(menuBar);
  newFile.addActionListener(this);
  newFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,InputEvent.CTRL_MASK));
  menuFile.add(newFile);
  openFile.addActionListener(this);
  openFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.CTRL_MASK));
  menuFile.add(openFile);
  saveFile.addActionListener(this);
  saveFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,InputEvent.CTRL_MASK));
  menuFile.add(saveFile);
  close.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,InputEvent.CTRL_MASK));
  close.addActionListener(this);
  menuFile.add(close);
  selectAll=new JMenuItem(selectAllAction);
  selectAll.setText("String_Node_Str");
  selectAll.setIcon(selectAllIcon);
  selectAll.setToolTipText("String_Node_Str");
  selectAll.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,InputEvent.CTRL_MASK));
  menuEdit.add(selectAll);
  clearFile.addActionListener(this);
  clearFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_K,InputEvent.CTRL_MASK));
  menuEdit.add(clearFile);
  cut=new JMenuItem(new DefaultEditorKit.CutAction());
  cut.setText("String_Node_Str");
  cut.setIcon(cutIcon);
  cut.setToolTipText("String_Node_Str");
  cut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X,InputEvent.CTRL_MASK));
  menuEdit.add(cut);
  wordWrap=new JMenuItem();
  wordWrap.setText("String_Node_Str");
  wordWrap.setIcon(wordwrapIcon);
  wordWrap.setToolTipText("String_Node_Str");
  wordWrap.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.CTRL_MASK));
  menuEdit.add(wordWrap);
  wordWrap.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent ev){
      if (textArea.getLineWrap() == false) {
        textArea.setLineWrap(true);
      }
 else {
        textArea.setLineWrap(false);
      }
    }
  }
);
  copy=new JMenuItem(new DefaultEditorKit.CopyAction());
  copy.setText("String_Node_Str");
  copy.setIcon(copyIcon);
  copy.setToolTipText("String_Node_Str");
  copy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C,InputEvent.CTRL_MASK));
  menuEdit.add(copy);
  paste=new JMenuItem(new DefaultEditorKit.PasteAction());
  paste.setText("String_Node_Str");
  paste.setIcon(pasteIcon);
  paste.setToolTipText("String_Node_Str");
  paste.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V,InputEvent.CTRL_MASK));
  menuEdit.add(paste);
  quickFind.addActionListener(this);
  quickFind.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F,InputEvent.CTRL_MASK));
  menuFind.add(quickFind);
  aboutMe.addActionListener(this);
  aboutMe.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1,0));
  menuAbout.add(aboutMe);
  aboutSoftware.addActionListener(this);
  aboutSoftware.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F2,0));
  menuAbout.add(aboutSoftware);
  mainToolbar=new JToolBar();
  this.add(mainToolbar,BorderLayout.NORTH);
  Border emptyBorder=BorderFactory.createEmptyBorder(0,0,0,50);
  newButton=new JButton(newIcon);
  newButton.setToolTipText("String_Node_Str");
  newButton.addActionListener(this);
  mainToolbar.add(newButton);
  mainToolbar.addSeparator();
  openButton=new JButton(openIcon);
  openButton.setToolTipText("String_Node_Str");
  openButton.addActionListener(this);
  mainToolbar.add(openButton);
  mainToolbar.addSeparator();
  saveButton=new JButton(saveIcon);
  saveButton.setToolTipText("String_Node_Str");
  saveButton.addActionListener(this);
  mainToolbar.add(saveButton);
  mainToolbar.addSeparator();
  clearButton=new JButton(clearIcon);
  clearButton.setToolTipText("String_Node_Str");
  clearButton.addActionListener(this);
  mainToolbar.add(clearButton);
  mainToolbar.addSeparator();
  quickButton=new JButton(searchIcon);
  quickButton.setToolTipText("String_Node_Str");
  quickButton.addActionListener(this);
  mainToolbar.add(quickButton);
  mainToolbar.addSeparator();
  aboutMeButton=new JButton(aboutMeIcon);
  aboutMeButton.setToolTipText("String_Node_Str");
  aboutMeButton.addActionListener(this);
  mainToolbar.add(aboutMeButton);
  mainToolbar.addSeparator();
  aboutButton=new JButton(aboutIcon);
  aboutButton.setToolTipText("String_Node_Str");
  aboutButton.addActionListener(this);
  mainToolbar.add(aboutButton);
  mainToolbar.addSeparator();
  closeButton=new JButton(closeIcon);
  closeButton.setToolTipText("String_Node_Str");
  closeButton.addActionListener(this);
  mainToolbar.add(closeButton);
  mainToolbar.addSeparator();
  fontType=new JComboBox();
  String[] fonts=GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
  for (int i=0; i < fonts.length; i++) {
    fontType.addItem(fonts[i]);
  }
  fontType.setMaximumSize(new Dimension(170,30));
  mainToolbar.add(fontType);
  mainToolbar.addSeparator();
  fontType.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent ev){
      String p=fontType.getSelectedItem().toString();
      int s=textArea.getFont().getSize();
      textArea.setFont(new Font(p,Font.PLAIN,s));
    }
  }
);
  fontSize=new JComboBox();
  for (int i=5; i <= 100; i++) {
    fontSize.addItem(i);
  }
  fontSize.setMaximumSize(new Dimension(70,30));
  mainToolbar.add(fontSize);
  fontSize.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent ev){
      String sizeValue=fontSize.getSelectedItem().toString();
      int sizeOfFont=Integer.parseInt(sizeValue);
      String fontFamily=textArea.getFont().getFamily();
      Font font1=new Font(fontFamily,Font.PLAIN,sizeOfFont);
      textArea.setFont(font1);
    }
  }
);
}

Fixed version (ground truth):
public UI(){
  container=getContentPane();
  setSize(700,500);
  setTitle("String_Node_Str" + SimpleJavaTextEditor.NAME);
  setDefaultCloseOperation(EXIT_ON_CLOSE);
  textArea=new JTextArea("String_Node_Str",0,0);
  textArea.setFont(new Font("String_Node_Str",Font.BOLD,12));
  textArea.setTabSize(2);
  textArea.setFont(new Font("String_Node_Str",Font.BOLD,12));
  textArea.setTabSize(2);
  textArea.setLineWrap(true);
  textArea.addKeyListener(new KeyAdapter(){
    public void keyPressed(    KeyEvent ke){
      languageHighlighter.highLight(textArea,kw.getCppKeywords());
      languageHighlighter.highLight(textArea,kw.getJavaKeywords());
    }
  }
);
  getContentPane().setLayout(new BorderLayout());
  getContentPane().add(textArea);
  menuFile=new JMenu("String_Node_Str");
  menuEdit=new JMenu("String_Node_Str");
  menuFind=new JMenu("String_Node_Str");
  menuAbout=new JMenu("String_Node_Str");
  newFile=new JMenuItem("String_Node_Str",newIcon);
  openFile=new JMenuItem("String_Node_Str",openIcon);
  saveFile=new JMenuItem("String_Node_Str",saveIcon);
  close=new JMenuItem("String_Node_Str",closeIcon);
  clearFile=new JMenuItem("String_Node_Str",clearIcon);
  quickFind=new JMenuItem("String_Node_Str",searchIcon);
  aboutMe=new JMenuItem("String_Node_Str",aboutMeIcon);
  aboutSoftware=new JMenuItem("String_Node_Str",aboutIcon);
  menuBar=new JMenuBar();
  menuBar.add(menuFile);
  menuBar.add(menuEdit);
  menuBar.add(menuFind);
  menuBar.add(menuAbout);
  this.setJMenuBar(menuBar);
  selectAllAction=new SelectAllAction("String_Node_Str",clearIcon,"String_Node_Str",new Integer(KeyEvent.VK_A),textArea);
  this.setJMenuBar(menuBar);
  newFile.addActionListener(this);
  newFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,InputEvent.CTRL_MASK));
  menuFile.add(newFile);
  openFile.addActionListener(this);
  openFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.CTRL_MASK));
  menuFile.add(openFile);
  saveFile.addActionListener(this);
  saveFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,InputEvent.CTRL_MASK));
  menuFile.add(saveFile);
  close.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,InputEvent.CTRL_MASK));
  close.addActionListener(this);
  menuFile.add(close);
  selectAll=new JMenuItem(selectAllAction);
  selectAll.setText("String_Node_Str");
  selectAll.setIcon(selectAllIcon);
  selectAll.setToolTipText("String_Node_Str");
  selectAll.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,InputEvent.CTRL_MASK));
  menuEdit.add(selectAll);
  clearFile.addActionListener(this);
  clearFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_K,InputEvent.CTRL_MASK));
  menuEdit.add(clearFile);
  cut=new JMenuItem(new DefaultEditorKit.CutAction());
  cut.setText("String_Node_Str");
  cut.setIcon(cutIcon);
  cut.setToolTipText("String_Node_Str");
  cut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X,InputEvent.CTRL_MASK));
  menuEdit.add(cut);
  wordWrap=new JMenuItem();
  wordWrap.setText("String_Node_Str");
  wordWrap.setIcon(wordwrapIcon);
  wordWrap.setToolTipText("String_Node_Str");
  wordWrap.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.CTRL_MASK));
  menuEdit.add(wordWrap);
  wordWrap.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent ev){
      if (textArea.getLineWrap() == false) {
        textArea.setLineWrap(true);
      }
 else {
        textArea.setLineWrap(false);
      }
    }
  }
);
  copy=new JMenuItem(new DefaultEditorKit.CopyAction());
  copy.setText("String_Node_Str");
  copy.setIcon(copyIcon);
  copy.setToolTipText("String_Node_Str");
  copy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C,InputEvent.CTRL_MASK));
  menuEdit.add(copy);
  paste=new JMenuItem(new DefaultEditorKit.PasteAction());
  paste.setText("String_Node_Str");
  paste.setIcon(pasteIcon);
  paste.setToolTipText("String_Node_Str");
  paste.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V,InputEvent.CTRL_MASK));
  menuEdit.add(paste);
  quickFind.addActionListener(this);
  quickFind.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F,InputEvent.CTRL_MASK));
  menuFind.add(quickFind);
  aboutMe.addActionListener(this);
  aboutMe.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1,0));
  menuAbout.add(aboutMe);
  aboutSoftware.addActionListener(this);
  aboutSoftware.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F2,0));
  menuAbout.add(aboutSoftware);
  mainToolbar=new JToolBar();
  this.add(mainToolbar,BorderLayout.NORTH);
  Border emptyBorder=BorderFactory.createEmptyBorder(0,0,0,50);
  newButton=new JButton(newIcon);
  newButton.setToolTipText("String_Node_Str");
  newButton.addActionListener(this);
  mainToolbar.add(newButton);
  mainToolbar.addSeparator();
  openButton=new JButton(openIcon);
  openButton.setToolTipText("String_Node_Str");
  openButton.addActionListener(this);
  mainToolbar.add(openButton);
  mainToolbar.addSeparator();
  saveButton=new JButton(saveIcon);
  saveButton.setToolTipText("String_Node_Str");
  saveButton.addActionListener(this);
  mainToolbar.add(saveButton);
  mainToolbar.addSeparator();
  clearButton=new JButton(clearIcon);
  clearButton.setToolTipText("String_Node_Str");
  clearButton.addActionListener(this);
  mainToolbar.add(clearButton);
  mainToolbar.addSeparator();
  quickButton=new JButton(searchIcon);
  quickButton.setToolTipText("String_Node_Str");
  quickButton.addActionListener(this);
  mainToolbar.add(quickButton);
  mainToolbar.addSeparator();
  aboutMeButton=new JButton(aboutMeIcon);
  aboutMeButton.setToolTipText("String_Node_Str");
  aboutMeButton.addActionListener(this);
  mainToolbar.add(aboutMeButton);
  mainToolbar.addSeparator();
  aboutButton=new JButton(aboutIcon);
  aboutButton.setToolTipText("String_Node_Str");
  aboutButton.addActionListener(this);
  mainToolbar.add(aboutButton);
  mainToolbar.addSeparator();
  closeButton=new JButton(closeIcon);
  closeButton.setToolTipText("String_Node_Str");
  closeButton.addActionListener(this);
  mainToolbar.add(closeButton);
  mainToolbar.addSeparator();
  fontType=new JComboBox();
  String[] fonts=GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
  for (int i=0; i < fonts.length; i++) {
    fontType.addItem(fonts[i]);
  }
  fontType.setMaximumSize(new Dimension(170,30));
  mainToolbar.add(fontType);
  mainToolbar.addSeparator();
  fontType.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent ev){
      String p=fontType.getSelectedItem().toString();
      int s=textArea.getFont().getSize();
      textArea.setFont(new Font(p,Font.PLAIN,s));
    }
  }
);
  fontSize=new JComboBox();
  for (int i=5; i <= 100; i++) {
    fontSize.addItem(i);
  }
  fontSize.setMaximumSize(new Dimension(70,30));
  mainToolbar.add(fontSize);
  fontSize.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent ev){
      String sizeValue=fontSize.getSelectedItem().toString();
      int sizeOfFont=Integer.parseInt(sizeValue);
      String fontFamily=textArea.getFont().getFamily();
      Font font1=new Font(fontFamily,Font.PLAIN,sizeOfFont);
      textArea.setFont(font1);
    }
  }
);
}