String s[]={"男","女"};
JComboBox jc=new JComboBox(s); String getjc=jc.getSelectedItem().toString;
|
|
来自: 风雨电雷 > 《java_swing》