KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > DefaultListModel

javax.swing
Class DefaultListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultListModel
All Implemented Interfaces:
Serializable, ListModel
See Also:
Top Examples, Source Code, XMLEncoder

public void add(int index,
                Object element)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addElement(Object obj)
See Also:
Vector.addElement(Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int capacity()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void clear()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean contains(Object elem)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void copyInto(Object[] anArray)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DefaultListModel()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1602]Use DefaultListModel
By Anonymous on 2005/11/04 20:23:08  Rate
JList result = new JList  ( new DefaultListModel  (  )  ) ; 
 result.setFont  ( new Font  ( "Arial", Font.PLAIN, 12 )  ) ; 
 result.setBorder  ( BorderFactory.createBevelBorder ( javax.swing.border.BevelBorder.LOWERED )  ) ;


public Object elementAt(int index)
See Also:
get(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Enumeration<?> elements()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void ensureCapacity(int minCapacity)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object firstElement()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object get(int index)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getElementAt(int index)
See Also:
get(int), ArrayIndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getSize()
See Also:
size()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int indexOf(Object elem)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int indexOf(Object elem,
                   int index)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void insertElementAt(Object obj,
                            int index)
See Also:
Vector.insertElementAt(Object,int), add(int,Object), ArrayIndexOutOfBoundsException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isEmpty()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object lastElement()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int lastIndexOf(Object elem)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int lastIndexOf(Object elem,
                       int index)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object remove(int index)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeAllElements()
See Also:
clear()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean removeElement(Object obj)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeElementAt(int index)
See Also:
remove(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeRange(int fromIndex,
                        int toIndex)
See Also:
remove(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object set(int index,
                  Object element)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setElementAt(Object obj,
                         int index)
See Also:
Vector.setElementAt(Object,int), set(int,Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSize(int newSize)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int size()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object[] toArray()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void trimToSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags