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 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 ();   

Alert : When implementing ListModel or TableModel and supporting the model with Time

/ P>

HTML>

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -