Program: 102992
Project: 102992
Buggy source:
/** 
 * Constructs new <tt>ChatRoomAutoOpenConfigDialog</tt> instance.
 * @param chatRoomId the chat room id of the chat room associated with the dialog 
 * @param pps the protocol provider service of the chat room
 */
public ChatRoomAutoOpenConfigDialog(ProtocolProviderService pps,final String chatRoomId){
  this.pps=pps;
  this.chatRoomId=chatRoomId;
  setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
  value=MUCService.getChatRoomAutoOpenOption(pps,chatRoomId);
  GuiActivator.getConfigurationService().addPropertyChangeListener(MessageHistoryService.PNAME_IS_MESSAGE_HISTORY_ENABLED,propertyListener);
  GuiActivator.getConfigurationService().addPropertyChangeListener(MessageHistoryService.PNAME_IS_MESSAGE_HISTORY_PER_CONTACT_ENABLED_PREFIX + "String_Node_Str" + chatRoomId,propertyListener);
  if (value == null)   value=MUCService.OPEN_ON_MESSAGE;
  if (value.equals(MUCService.OPEN_ON_ACTIVITY)) {
    openOnActivity.setSelected(true);
  }
 else   if (value.equals(MUCService.OPEN_ON_IMPORTANT_MESSAGE)) {
    openOnImportantMessage.setSelected(true);
  }
 else {
    openOnMessage.setSelected(true);
  }
  JPanel choicePanel=new TransparentPanel();
  choicePanel.setLayout(new BoxLayout(choicePanel,BoxLayout.Y_AXIS));
  openOnActivity.addActionListener(this);
  openOnMessage.addActionListener(this);
  openOnImportantMessage.addActionListener(this);
  setTitle(GuiActivator.getResources().getI18NString("String_Node_Str"));
  openOnActivity.setOpaque(false);
  openOnMessage.setOpaque(false);
  openOnImportantMessage.setOpaque(false);
  ButtonGroup buttonGroup=new ButtonGroup();
  buttonGroup.add(openOnActivity);
  buttonGroup.add(openOnMessage);
  buttonGroup.add(openOnImportantMessage);
  choicePanel.add(openOnActivity);
  choicePanel.add(openOnMessage);
  choicePanel.add(openOnImportantMessage);
  JPanel buttonPanel=new TransparentPanel(new FlowLayout(FlowLayout.RIGHT));
  updateView();
  okButton.addActionListener(this);
  cancelButton.addActionListener(this);
  buttonPanel.add(okButton);
  buttonPanel.add(cancelButton);
  add(choicePanel,BorderLayout.CENTER);
  add(buttonPanel,BorderLayout.SOUTH);
  setPreferredSize(new Dimension(300,140));
  setVisible(true);
}

Fixed version (ground truth):
/** 
 * Constructs new <tt>ChatRoomAutoOpenConfigDialog</tt> instance.
 * @param chatRoomId the chat room id of the chat room associated with the dialog 
 * @param pps the protocol provider service of the chat room
 */
private ChatRoomAutoOpenConfigDialog(ProtocolProviderService pps,final String chatRoomId){
  this.pps=pps;
  this.chatRoomId=chatRoomId;
  setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
  refreshValue();
  JPanel choicePanel=new TransparentPanel();
  choicePanel.setLayout(new BoxLayout(choicePanel,BoxLayout.Y_AXIS));
  choicePanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
  openOnActivity.addActionListener(this);
  openOnMessage.addActionListener(this);
  openOnImportantMessage.addActionListener(this);
  setTitle(GuiActivator.getResources().getI18NString("String_Node_Str"));
  openOnActivity.setOpaque(false);
  openOnMessage.setOpaque(false);
  openOnImportantMessage.setOpaque(false);
  ButtonGroup buttonGroup=new ButtonGroup();
  buttonGroup.add(openOnActivity);
  buttonGroup.add(openOnMessage);
  buttonGroup.add(openOnImportantMessage);
  choicePanel.add(openOnActivity);
  choicePanel.add(openOnMessage);
  choicePanel.add(openOnImportantMessage);
  JPanel buttonPanel=new TransparentPanel(new FlowLayout(FlowLayout.RIGHT));
  updateView();
  okButton.addActionListener(this);
  cancelButton.addActionListener(this);
  buttonPanel.add(okButton);
  buttonPanel.add(cancelButton);
  add(choicePanel,BorderLayout.CENTER);
  add(buttonPanel,BorderLayout.SOUTH);
  setVisible(true);
  setPreferredSize(new Dimension(320,150));
  pack();
}