开发者

How to make JRadioButtons change properties (JFrame)?

How can I make my JRadioButton enable/di开发者_开发知识库sable a JComboBox in JFrame?


if(radioButton.isSelected())
{
   combo.setEnabled(true);
}
else
{
   combo.setEnabled(false);
}

EDIT: Put this code in your event handler of JRadioButton

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜