public synchronized CheckBox setLabel ( String label ) { if ( label == null ) { throw new IllegalArgumentException ( "Cannot set CheckBox label to null" ) ; } this . label = label ; invalidate ( ) ; return this ; }
Updates the label of the checkbox