
363Customizing MATLAB
®
Controls
StateChangedCallback ◾ — Similar to ItemStateChangedCallback, but also red
when the mouse enters and leaves the button bounds thereby modifying the button
appearance with a special highlight border.
In addition to all the regular
JPushButton properties, methods and callbacks, MATLAB’s
PushButtonPeer$1 adds the following public properties:
AutoMnemonicEnabled
◾ — boolean ag (default=false); if set, then setting the button
label (via setText()) with a string containing an ampersand (&) will automatically pro-
cess the string and use the & location as an indication of a requested mnemonic, saving ...