
Undocumented Secrets of MATLAB
®
-Java Programming368
Here is how the checkbox uicontrol appears with different L&Fs on R2007b (JVM 1.6) on
the Windows XP platform:
Unselected
Selected
Windows L&F Windows Classic L&F Metal L&F Motif & Plastic L&F
JCheckBox is selectable just like JRadioButton and JToggleButton, and can therefore
participate in a
javax.swing.ButtonGroup
17
for mutually exclusive behavior. This is the
standard manner of programming a list of mutually exclusive radio buttons, but a
ButtonGroup
can contain a mixture of
JRadioButton, JCheckBox, and JToggleButton. However, the
MATLAB uibuttongroup allows ...