updated javadoc about CheckBox usage

Add an example about CheckBox usage