E - 该模型的元素的类型 
       public interface ListModel<E> 
      JList 
       | Modifier and Type | Method and Description | 
|---|---|
| void | addListDataListener(ListDataListener l)
              将一个监听器添加到每次发生数据模型更改时通知的列表。 
             | 
| E | getElementAt(int index)
              返回指定索引处的值。 
             | 
| int | getSize()
              返回列表的长度。 
             | 
| void | removeListDataListener(ListDataListener l)
              从每次发生数据模型更改时通知的列表中移除侦听器。 
             | 
int getSize()
E getElementAt(int index)
index - 请求的索引 
           index 
           void addListDataListener(ListDataListener l)
l - 要加入的 
            ListDataListener 
           void removeListDataListener(ListDataListener l)
l - 要删除的 
            ListDataListener 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.