Java窗体中的单选按钮如何判断是否被选择

Java窗体中的单选按钮如何判断是否被选择

javax.swing.JCheckBox

public boolean isSelected()

Returns the state of the button. True if the toggle button is selected, false if it's not.

Returns:
true if the toggle button is selected, otherwise false
select=true即被选中
← 上一篇: 下一篇: →