java - Get DefaultListModel to use LinkedList -
Is it possible to use the contents of linkedlist to display a default list of order?
It is then to be used with a jellist.
Yes it is possible: you only need to subclass and override your underlying Alert : When implementing linkedlist < Call via / code>.
Public category MyListModel AbstractListModel {private final list & lt ;? & Gt; L; Public MyListModel (list & lt;? & Gt; L) {this.l = l; } Public object getElementAt (int index) {return l.gate (index); } Public int getSize () {return l.size ();
ListModel
or TableModel
and supporting the model with Time
Comments
Post a Comment