按钮普通按钮构造方法:public JButton();public JButton(String text);
切换按钮
切换按钮有两种状态,即选中状态和未选中状态。
通过isSelected()方法可以获知当前按钮状态。构造方法:JTo
2021-11-14