0 如何從我的jlist中獲取選定元素的數量?所以我可以創建一個int []數組並將選定的索引添加到此數組中。JList - 獲取多選列表中選定元素的數量 來源 2013-02-13 user1851487 +0 不[JList.getSelectedIndices()](http://docs.oracle.com/javase/7/docs/ api/javax/swing/JList.html#getSelectedIndices%28%29)不夠,它會產生'int []'? – 2013-02-13 11:44:21
不[JList.getSelectedIndices()](http://docs.oracle.com/javase/7/docs/ api/javax/swing/JList.html#getSelectedIndices%28%29)不夠,它會產生'int []'? – 2013-02-13 11:44:21