1,设置面板不可拖动变化
java.awt.Frame.setResizable(false);
2,设置一组单选RadioButton
先声明:
ButtonGroup jButtonGroup = new ButtonGroup();
JRadioButton jRadioButton1 = new JRadioButton();
JRadioButton jRadioButton2 = new JRadioButton();
JRadioButton jRadioButton3 = new JRadioButton();
后捆绑:
jButtonGroup.add(jRadioButton1);
jButtonGroup.add(jRadioButton2);
jButtonGroup.add(jRadioButton3);
3,弹出一个提示框
JOptionPane.showMessageDialog(this,””)
4,获取一个列表对象的总长度
getItemCount();
5,判断一个列表对象中一个Item是否被选中
isIndexSelected(int index);
本文地址:http://com.8s8s.com/it/it16118.htm