1
下面是我想顯示什麼:如何使用Java在彈出窗口中顯示數組列表的輸出?
JTextArea result = new JTextArea(10,20);
ArrayList<String> result_set = gen.getResult();
for(Iterator it = result_set.iterator(); it.hasNext();)
{
String data = (String)it.next();
result.append(data+"\n");
}
我怎樣才能把JTextArea
在彈出窗口?