Program: 102970
Project: 102970
Buggy source:
/** 
 * Creates an <tt>AboutWindow</tt> by specifying the parent frame owner.
 * @param owner the parent owner
 */
public AboutWindow(Frame owner){
  super(owner);
  ResourceManagementService resources=BrandingActivator.getResources();
  String applicationName=resources.getSettingsString("String_Node_Str");
  this.setTitle(resources.getI18NString("String_Node_Str",new String[]{applicationName}));
  setModal(false);
  setDefaultCloseOperation(DISPOSE_ON_CLOSE);
  JPanel mainPanel=new WindowBackground();
  mainPanel.setLayout(new BorderLayout());
  JPanel textPanel=new JPanel();
  textPanel.setPreferredSize(new Dimension(470,280));
  textPanel.setLayout(new BoxLayout(textPanel,BoxLayout.Y_AXIS));
  textPanel.setBorder(BorderFactory.createEmptyBorder(15,15,15,15));
  textPanel.setOpaque(false);
  JLabel titleLabel=null;
  if (isApplicationNameShown()) {
    titleLabel=new JLabel(applicationName);
    titleLabel.setFont(titleLabel.getFont().deriveFont(Font.BOLD,28));
    titleLabel.setForeground(Constants.TITLE_COLOR);
    titleLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);
  }
  versionLabel=new JTextField("String_Node_Str" + System.getProperty("String_Node_Str")){
    /** 
 * Returns the name of the L&F class that renders this component.
 * @return the string "TreeUI"
 * @see JComponent#getUIClassID
 * @see UIDefaults#getUI
 */
    @Override public String getUIClassID(){
      return uiClassID;
    }
  }
;
  versionLabel.setBorder(null);
  versionLabel.setOpaque(false);
  versionLabel.setEditable(false);
  versionLabel.setFont(versionLabel.getFont().deriveFont(Font.BOLD,18));
  versionLabel.setForeground(Constants.TITLE_COLOR);
  versionLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);
  versionLabel.setHorizontalAlignment(JTextField.RIGHT);
  int logoAreaFontSize=resources.getSettingsInt("String_Node_Str");
  JTextArea logoArea=new JTextArea(resources.getI18NString("String_Node_Str"));
  logoArea.setFont(logoArea.getFont().deriveFont(Font.BOLD,logoAreaFontSize));
  logoArea.setForeground(Constants.TITLE_COLOR);
  logoArea.setOpaque(false);
  logoArea.setLineWrap(true);
  logoArea.setWrapStyleWord(true);
  logoArea.setEditable(false);
  logoArea.setPreferredSize(new Dimension(100,20));
  logoArea.setAlignmentX(Component.RIGHT_ALIGNMENT);
  logoArea.setBorder(BorderFactory.createEmptyBorder(30,DEFAULT_TEXT_INDENT,0,0));
  StyledHTMLEditorPane rightsArea=new StyledHTMLEditorPane();
  rightsArea.setContentType("String_Node_Str");
  rightsArea.appendToEnd(resources.getI18NString("String_Node_Str",new String[]{Constants.TEXT_COLOR}));
  rightsArea.setPreferredSize(new Dimension(50,20));
  rightsArea.setBorder(BorderFactory.createEmptyBorder(0,DEFAULT_TEXT_INDENT,0,0));
  rightsArea.setOpaque(false);
  rightsArea.setEditable(false);
  rightsArea.setAlignmentX(Component.RIGHT_ALIGNMENT);
  rightsArea.addHyperlinkListener(this);
  StyledHTMLEditorPane licenseArea=new StyledHTMLEditorPane();
  licenseArea.setContentType("String_Node_Str");
  licenseArea.appendToEnd(resources.getI18NString("String_Node_Str",new String[]{Constants.TEXT_COLOR}));
  licenseArea.setPreferredSize(new Dimension(50,20));
  licenseArea.setBorder(BorderFactory.createEmptyBorder(resources.getSettingsInt("String_Node_Str"),DEFAULT_TEXT_INDENT,0,0));
  licenseArea.setOpaque(false);
  licenseArea.setEditable(false);
  licenseArea.setAlignmentX(Component.RIGHT_ALIGNMENT);
  licenseArea.addHyperlinkListener(this);
  if (titleLabel != null)   textPanel.add(titleLabel);
  textPanel.add(versionLabel);
  textPanel.add(logoArea);
  textPanel.add(rightsArea);
  textPanel.add(licenseArea);
  JButton okButton=new JButton(resources.getI18NString("String_Node_Str"));
  this.getRootPane().setDefaultButton(okButton);
  okButton.setMnemonic(resources.getI18nMnemonic("String_Node_Str"));
  okButton.addActionListener(this);
  JPanel buttonPanel=new JPanel(new FlowLayout(FlowLayout.RIGHT));
  buttonPanel.add(okButton);
  buttonPanel.setOpaque(false);
  mainPanel.add(textPanel,BorderLayout.CENTER);
  mainPanel.add(buttonPanel,BorderLayout.SOUTH);
  this.getContentPane().add(mainPanel);
  this.pack();
  this.setResizable(false);
  setLocationRelativeTo(getParent());
  this.getRootPane().getActionMap().put("String_Node_Str",new CloseAction());
  InputMap imap=this.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
  imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0),"String_Node_Str");
  if (OSUtils.IS_MAC) {
    imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.META_DOWN_MASK),"String_Node_Str");
    imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.CTRL_DOWN_MASK),"String_Node_Str");
  }
  WindowUtils.addWindow(this);
}

Fixed version (ground truth):
/** 
 * Creates an <tt>AboutWindow</tt> by specifying the parent frame owner.
 * @param owner the parent owner
 */
public AboutWindow(Frame owner){
  super(owner);
  ResourceManagementService resources=BrandingActivator.getResources();
  String applicationName=resources.getSettingsString("String_Node_Str");
  this.setTitle(resources.getI18NString("String_Node_Str",new String[]{applicationName}));
  setModal(false);
  setDefaultCloseOperation(DISPOSE_ON_CLOSE);
  setResizable(false);
  JPanel mainPanel=new WindowBackground();
  mainPanel.setLayout(new BorderLayout());
  JPanel textPanel=new JPanel();
  textPanel.setPreferredSize(new Dimension(470,280));
  textPanel.setLayout(new BoxLayout(textPanel,BoxLayout.Y_AXIS));
  textPanel.setBorder(BorderFactory.createEmptyBorder(15,15,15,15));
  textPanel.setOpaque(false);
  JLabel titleLabel=null;
  if (isApplicationNameShown()) {
    titleLabel=new JLabel(applicationName);
    titleLabel.setFont(titleLabel.getFont().deriveFont(Font.BOLD,28));
    titleLabel.setForeground(Constants.TITLE_COLOR);
    titleLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);
  }
  versionLabel=new JTextField("String_Node_Str" + System.getProperty("String_Node_Str")){
    /** 
 * Returns the name of the L&F class that renders this component.
 * @return the string "TreeUI"
 * @see JComponent#getUIClassID
 * @see UIDefaults#getUI
 */
    @Override public String getUIClassID(){
      return uiClassID;
    }
  }
;
  versionLabel.setBorder(null);
  versionLabel.setOpaque(false);
  versionLabel.setEditable(false);
  versionLabel.setFont(versionLabel.getFont().deriveFont(Font.BOLD,18));
  versionLabel.setForeground(Constants.TITLE_COLOR);
  versionLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);
  versionLabel.setHorizontalAlignment(JTextField.RIGHT);
  int logoAreaFontSize=resources.getSettingsInt("String_Node_Str");
  JTextArea logoArea=new JTextArea(resources.getI18NString("String_Node_Str"));
  logoArea.setFont(logoArea.getFont().deriveFont(Font.BOLD,logoAreaFontSize));
  logoArea.setForeground(Constants.TITLE_COLOR);
  logoArea.setOpaque(false);
  logoArea.setLineWrap(true);
  logoArea.setWrapStyleWord(true);
  logoArea.setEditable(false);
  logoArea.setPreferredSize(new Dimension(100,20));
  logoArea.setAlignmentX(Component.RIGHT_ALIGNMENT);
  logoArea.setBorder(BorderFactory.createEmptyBorder(30,DEFAULT_TEXT_INDENT,0,0));
  StyledHTMLEditorPane rightsArea=new StyledHTMLEditorPane();
  rightsArea.setContentType("String_Node_Str");
  rightsArea.appendToEnd(resources.getI18NString("String_Node_Str",new String[]{Constants.TEXT_COLOR}));
  rightsArea.setPreferredSize(new Dimension(50,20));
  rightsArea.setBorder(BorderFactory.createEmptyBorder(0,DEFAULT_TEXT_INDENT,0,0));
  rightsArea.setOpaque(false);
  rightsArea.setEditable(false);
  rightsArea.setAlignmentX(Component.RIGHT_ALIGNMENT);
  rightsArea.addHyperlinkListener(this);
  StyledHTMLEditorPane licenseArea=new StyledHTMLEditorPane();
  licenseArea.setContentType("String_Node_Str");
  licenseArea.appendToEnd(resources.getI18NString("String_Node_Str",new String[]{Constants.TEXT_COLOR}));
  licenseArea.setPreferredSize(new Dimension(50,20));
  licenseArea.setBorder(BorderFactory.createEmptyBorder(resources.getSettingsInt("String_Node_Str"),DEFAULT_TEXT_INDENT,0,0));
  licenseArea.setOpaque(false);
  licenseArea.setEditable(false);
  licenseArea.setAlignmentX(Component.RIGHT_ALIGNMENT);
  licenseArea.addHyperlinkListener(this);
  if (titleLabel != null)   textPanel.add(titleLabel);
  textPanel.add(versionLabel);
  textPanel.add(logoArea);
  textPanel.add(rightsArea);
  textPanel.add(licenseArea);
  JButton okButton=new JButton(resources.getI18NString("String_Node_Str"));
  this.getRootPane().setDefaultButton(okButton);
  okButton.setMnemonic(resources.getI18nMnemonic("String_Node_Str"));
  okButton.addActionListener(this);
  JPanel buttonPanel=new JPanel(new FlowLayout(FlowLayout.RIGHT));
  buttonPanel.add(okButton);
  buttonPanel.setOpaque(false);
  mainPanel.add(textPanel,BorderLayout.CENTER);
  mainPanel.add(buttonPanel,BorderLayout.SOUTH);
  this.getContentPane().add(mainPanel);
  this.pack();
  setLocationRelativeTo(getParent());
  this.getRootPane().getActionMap().put("String_Node_Str",new CloseAction());
  InputMap imap=this.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
  imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0),"String_Node_Str");
  if (OSUtils.IS_MAC) {
    imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.META_DOWN_MASK),"String_Node_Str");
    imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.CTRL_DOWN_MASK),"String_Node_Str");
  }
  WindowUtils.addWindow(this);
}