javax.swing

Class JButton.AccessibleJButton

protected class JButton.AccessibleJButton extends AbstractButton.AccessibleAbstractButton

Accessibility support for JButtons.
Method Summary
AccessibleRolegetAccessibleRole()
Returns the accessible role that this component represents.

Method Detail

getAccessibleRole

public AccessibleRole getAccessibleRole()
Returns the accessible role that this component represents. This is {@link AccessibleRole#PUSH_BUTTON} for JButtons.

Returns: the accessible role that this component represents