Buggy code:
private JTextField attribs = new JTextField ( 20 ) ; private JCheckBox retobj = new JCheckBox ( JMeterUtils . getResString ( "retobj" ) ) ; private JCheckBox deref = new JCheckBox ( JMeterUtils . getResString ( "deref" ) ) ; private JTextField userdn = new JTextField ( 20 ) ; private JTextField userpw = new JPasswordField ( 20 ) ; private JTextField comparedn = new JTextField ( 20 ) ; private JTextField comparefilt = new JTextField ( 20 ) ; private JTextField modddn = new JTextField ( 20 ) ; private JTextField newdn = new JTextField ( 20 ) ; private JTextField connto = new JTextField ( 20 ) ; private JCheckBox parseflag = new JCheckBox ( JMeterUtils . getResString ( "ldap_parse_results" ) ) ; private JCheckBox secure = new JCheckBox ( JMeterUtils . getResString ( "ldap_secure" ) ) ; private JRadioButton addTest = new JRadioButton ( JMeterUtils . getResString ( "addtest" ) ) ; private JRadioButton modifyTest = new JRadioButton ( JMeterUtils . getResString ( "modtest" ) ) ; private JRadioButton deleteTest = new JRadioButton ( JMeterUtils . getResString ( "deltest" ) ) ; private JRadioButton searchTest = new JRadioButton ( JMeterUtils . getResString ( "searchtest" ) ) ; private JRadioButton bind = new JRadioButton ( JMeterUtils . getResString ( "bind" ) ) ; private JRadioButton rename = new JRadioButton ( JMeterUtils . getResString ( "rename" ) ) ; private JRadioButton unbind = new JRadioButton ( JMeterUtils . getResString ( "unbind" ) ) ; private JRadioButton sbind = new JRadioButton ( JMeterUtils . getResString ( "sbind" ) ) ; private JRadioButton compare = new JRadioButton ( JMeterUtils . getResString ( "compare" ) ) ; private ButtonGroup bGroup = new ButtonGroup ( ) ; private boolean displayName = true ; ArgumentsPanel tableAddPanel = new ArgumentsPanel ( JMeterUtils . getResString ( "addtest" ) ) ; LDAPArgumentsPanel tableModifyPanel = new LDAPArgumentsPanel ( JMeterUtils . getResString ( "modtest" ) ) ; private JPanel cards ; public LdapExtConfigGui ( ) { } public LdapExtConfigGui ( boolean displayName ) { } public String getLabelResource ( ) { } @ Override public void configure ( TestElement element ) { super . configure ( element ) ; servername . setText ( element . getPropertyAsString ( SERVERNAME ) ) ; port . setText ( element . getPropertyAsString ( PORT ) ) ; rootdn . setText ( element . getPropertyAsString ( ROOTDN ) ) ; scope . setSelectedIndex ( element . getPropertyAsInt ( SCOPE ) ) ; countlim . setText ( element . getPropertyAsString ( COUNTLIM ) ) ; timelim . setText ( element . getPropertyAsString ( TIMELIM ) ) ; attribs . setText ( element . getPropertyAsString ( ATTRIBS ) ) ; retobj . setSelected ( element . getPropertyAsBoolean ( RETOBJ ) ) ; deref . setSelected ( element . getPropertyAsBoolean ( DEREF ) ) ; connto . setText ( element . getPropertyAsString ( CONNTO ) ) ; parseflag . setSelected ( element . getPropertyAsBoolean ( PARSEFLAG ) ) ; secure . setSelected ( element . getPropertyAsBoolean ( SECURE ) ) ; userpw . setText ( element . getPropertyAsString ( USERPW ) ) ; userdn . setText ( element . getPropertyAsString ( USERDN ) ) ; comparedn . setText ( element . getPropertyAsString ( COMPAREDN ) ) ; comparefilt . setText ( element . getPropertyAsString ( COMPAREFILT ) ) ; modddn . setText ( element . getPropertyAsString ( MODDDN ) ) ; newdn . setText ( element . getPropertyAsString ( NEWDN ) ) ; CardLayout cl = ( ( CardLayout ) ( cards . getLayout ( ) ) ) ; final String testType = element . getPropertyAsString ( TEST ) ; if ( testType . equals ( UNBIND ) ) { unbind . setSelected ( true ) ; cl . show ( cards , LdapExtConfigGui . CARDS_DEFAULT ) ; } else if ( testType . equals ( BIND ) ) { bind . setSelected ( true ) ; cl . show ( cards , LdapExtConfigGui . CARDS_BIND ) ; } else if ( testType . equals ( SBIND ) ) { sbind . setSelected ( true ) ; <START_BUG> cl . show ( cards , LdapExtConfigGui . CARDS_DEFAULT ) ; <END_BUG> } else if ( testType . equals ( COMPARE ) ) { compare . setSelected ( true ) ; cl . show ( cards , LdapExtConfigGui . CARDS_COMPARE ) ; } else if ( testType . equals ( ADD ) ) { addTest . setSelected ( true ) ; add . setText ( element . getPropertyAsString ( BASE_ENTRY_DN ) ) ; tableAddPanel . configure ( ( ( TestElement ) ( element . getProperty ( ARGUMENTS ) . getObjectValue ( ) ) ) ) ; cl . show ( cards , LdapExtConfigGui . CARDS_ADD ) ; } else if ( testType . equals ( MODIFY ) ) { modifyTest . setSelected ( true ) ; modify . setText ( element . getPropertyAsString ( BASE_ENTRY_DN ) ) ; tableModifyPanel . configure ( ( ( TestElement ) ( element . getProperty ( LDAPARGUMENTS ) . getObjectValue ( ) ) ) ) ; cl . show ( cards , LdapExtConfigGui . CARDS_MODIFY ) ; } else if ( testType . equals ( DELETE ) ) { deleteTest . setSelected ( true ) ; delete . setText ( element . getPropertyAsString ( DELETE ) ) ; cl . show ( cards , LdapExtConfigGui . CARDS_DELETE ) ; } else if ( testType . equals ( RENAME ) ) { rename . setSelected ( true ) ; cl . show ( cards , LdapExtConfigGui . CARDS_RENAME ) ; } else if ( testType . equals ( SEARCH ) ) { searchTest . setSelected ( true ) ; searchbase . setText ( element . getPropertyAsString ( SEARCHBASE ) ) ; searchfilter . setText ( element . getPropertyAsString ( SEARCHFILTER ) ) ; cl . show ( cards , LdapExtConfigGui . CARDS_SEARCH ) ; } } public TestElement createTestElement ( ) { } public void modifyTestElement ( TestElement element ) { }

Fix:
cl . show ( cards , LdapExtConfigGui . CARDS_BIND ) ;