我是说如下一段: String ssss={"a","b","c","d"};
ssss = (String)JOptionPane.showInputDialog(this, "Countary", "国家",
JOptionPane.QUESTION_MESSAGE, null,
sss, sss[0]);
定义的是String数组.对话框中出现的是一个JComboBox, 我现在要在对话框中出现一个JList,而不 是JComboBox.应该怎样实现?
JList的定义
String[] data = {"one", "two", "three", "four"};
JList dataList = new JList(data);
JOptionPane.showInputDialog(null,"*****","******", JOptionPane.QUESTION_MESSAGE, null,这里如何改?.)