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