swing 复选框时间:2023-03-09 01:30:32 通过 box1 和 box2的 public boolean isSelected()的方法 返回按钮的状态。 如果选定了切换按钮,则返回 true,否则返回 false。