/** * Sets the text of this button, some button implementations may ignore the text. * @param text the new text, can be <code>null</code> */ public void setText( String text ){ String oldText = this.text; this.text = text; for( BasicButtonModelListener listener : listeners() ){ listener.textChanged( this, oldText, text ); } changed(); }