SwingCheckbox extends SwingElement implements XulCheckbox { public void setChecked( boolean checked ) { checkBox.setSelected( checked ); } SwingCheckbox( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); boolean getSelected(); void setSelected( boolean selected ); void layout(); void setLabel( String label ); String getLabel(); boolean isChecked(); boolean isDisabled(); void setChecked( boolean checked ); void setDisabled( boolean dis ); void setCommand( final String method ); String getCommand();  }
@Test public final void testSetChecked() { check2.setChecked( false ); assertTrue( !check2.isChecked() ); check2.setChecked( true ); assertTrue( check2.isChecked() ); }