3233343536373839404142
boolean consumed = super.mouseClick(component, button, x, y, count); Checkbox checkbox = (Checkbox)getComponent(); checkbox.requestFocus(); checkbox.press(); return consumed; } @Override
4445464748495051525354
boolean consumed = false; Checkbox checkbox = (Checkbox)getComponent(); if (keyCode == Keyboard.KeyCode.SPACE) { checkbox.press(); } else { consumed = super.keyReleased(component, keyCode, keyLocation); } return consumed;