Buggy code:
public class ApplicationPreferenceModelPanel extends AbstractPreferencePanel { private ApplicationPreferenceModel committedPreferenceModel ; private ApplicationPreferenceModel uncommittedPreferenceModel = new ApplicationPreferenceModel ( ) ; JTextField identifierExpression ; ApplicationPreferenceModelPanel ( ApplicationPreferenceModel model ) { } public static void main ( String [ ] args ) { } public void updateModel ( ) { } protected TreeModel createTreeModel ( ) { } public class VisualsPrefPanel extends BasicPrefPanel { private final JRadioButton topPlacement = new JRadioButton ( "Top" ) ; private final JRadioButton bottomPlacement = new JRadioButton ( "Bottom" ) ; private final JCheckBox statusBar = new JCheckBox ( "Show<seq2seq4repair_space>Status<seq2seq4repair_space>bar" ) ; private final JCheckBox toolBar = new JCheckBox ( "Show<seq2seq4repair_space>Toolbar" ) ; private final JCheckBox receivers = new JCheckBox ( "Show<seq2seq4repair_space>Receivers" ) ; private UIManager . LookAndFeelInfo [ ] lookAndFeels = UIManager . getInstalledLookAndFeels ( ) ; private final ButtonGroup lookAndFeelGroup = new ButtonGroup ( ) ; private VisualsPrefPanel ( ) { } private void setupListeners ( ) { topPlacement . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { uncommittedPreferenceModel . setTabPlacement ( SwingConstants . TOP ) ; } } ) ; bottomPlacement . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { uncommittedPreferenceModel . setTabPlacement ( SwingConstants . BOTTOM ) ; } } ) ; statusBar . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { uncommittedPreferenceModel . setStatusBar ( statusBar . isSelected ( ) ) ; } } ) ; toolBar . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { uncommittedPreferenceModel . setToolbar ( toolBar . isSelected ( ) ) ; } } ) ; receivers . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { uncommittedPreferenceModel . setReceivers ( receivers . isSelected ( ) ) ; } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "tabPlacement" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { int value = ( ( Integer ) ( evt . getNewValue ( ) ) ) . intValue ( ) ; switch ( value ) { case SwingConstants . TOP : topPlacement . setSelected ( true ) ; break ; case SwingConstants . BOTTOM : bottomPlacement . setSelected ( true ) ; break ; default : break ; } } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "statusBar" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { statusBar . setSelected ( ( ( Boolean ) ( evt . getNewValue ( ) ) ) . booleanValue ( ) ) ; } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "toolbar" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { toolBar . setSelected ( ( ( Boolean ) ( evt . getNewValue ( ) ) ) . booleanValue ( ) ) ; } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "receivers" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { receivers . setSelected ( ( ( Boolean ) ( evt . getNewValue ( ) ) ) . booleanValue ( ) ) ; } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "lookAndFeelClassName" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { String lf = evt . getNewValue ( ) . toString ( ) ; Enumeration enumeration = lookAndFeelGroup . getElements ( ) ; while ( enumeration . hasMoreElements ( ) ) { JRadioButton button = ( ( JRadioButton ) ( enumeration . nextElement ( ) ) ) ; <START_BUG> if ( button . getName ( ) . equals ( lf ) ) { <END_BUG> button . setSelected ( true ) ; break ; } } } } ) ; } private void setupComponents ( ) { } } public class GeneralAllPrefPanel extends BasicPrefPanel { private final JCheckBox showNoReceiverWarning = new JCheckBox ( "Prompt<seq2seq4repair_space>me<seq2seq4repair_space>on<seq2seq4repair_space>startup<seq2seq4repair_space>if<seq2seq4repair_space>there<seq2seq4repair_space>are<seq2seq4repair_space>no<seq2seq4repair_space>Receivers<seq2seq4repair_space>defined" ) ; private final JSlider responsiveSlider = new JSlider ( JSlider . HORIZONTAL , 1 , 4 , 2 ) ; private final JCheckBox confirmExit = new JCheckBox ( "Confirm<seq2seq4repair_space>Exit" ) ; Dictionary sliderLabelMap = new Hashtable ( ) ; public GeneralAllPrefPanel ( ) { } private void initComponents ( ) { } private void initSliderComponent ( ) { } private void setupListeners ( ) { uncommittedPreferenceModel . addPropertyChangeListener ( "showNoReceiverWarning" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { showNoReceiverWarning . setSelected ( ( ( Boolean ) ( evt . getNewValue ( ) ) ) . booleanValue ( ) ) ; } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "identifierExpression" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { identifierExpression . setText ( evt . getNewValue ( ) . toString ( ) ) ; } } ) ; uncommittedPreferenceModel . addPropertyChangeListener ( "responsiveness" , new PropertyChangeListener ( ) { public void propertyChange ( PropertyChangeEvent evt ) { int value = ( ( Integer ) ( evt . getNewValue ( ) ) ) . intValue ( ) ; if ( value >= 1000 ) { int newValue = ( value - 750 ) // 1000 ; LogLog . debug ( ( ( ( "Adjusting<seq2seq4repair_space>old<seq2seq4repair_space>Responsiveness<seq2seq4repair_space>value<seq2seq4repair_space>from<seq2seq4repair_space>" + value ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + newValue ) ) ; value = newValue ; } responsiveSlider . setValue ( value ) ; } } ) ; showNoReceiverWarning . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { uncommittedPreferenceModel . setShowNoReceiverWarning ( showNoReceiverWarning . isSelected ( ) ) ; } } ) ; responsiveSlider . getModel ( ) . addChangeListener ( new ChangeListener ( ) { public void stateChanged ( ChangeEvent e ) { if ( responsiveSlider . getValueIsAdjusting ( ) ) { } else { int value = responsiveSlider . getValue ( ) ; if ( value == 0 ) { value = 1 ; } LogLog . debug ( ( "Adjust<seq2seq4repair_space>responsiveness<seq2seq4repair_space>to<seq2seq4repair_space>" + value ) ) ; uncommittedPreferenceModel . setResponsiveness ( value ) ; } } } ) ;

Fix:
if ( ( ( button . getName ( ) ) != null ) && ( button . getName ( ) . equals ( lf ) ) ) {