public void configureLabel ( JLabel label ) { Assert . notNull ( label , "label" ) ; label . setText ( this . text ) ; label . setDisplayedMnemonic ( getMnemonic ( ) ) ; if ( getMnemonicIndex ( ) >= - 1 ) { label . setDisplayedMnemonicIndex ( getMnemonicIndex ( ) ) ; } }
Configures the given label with the parameters from this instance .