首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

swing buttongroup改动选中对象

2012-12-18 
swing buttongroup更改选中对象buttongroup有一个方法是setSelected(ButtonModel m,boolean b),要想当选中

swing buttongroup更改选中对象

buttongroup有一个方法是setSelected(ButtonModel m,boolean b),要想当选中单选组中的一个时其它变为未选中,可以这样:

buttonGroupObj.setSelected(jRadioButtonObj.getModel(),true);

?

热点排行