View Single Post
  #3 (permalink)  
Old 06-03-2008, 08:09 AM
kewlgeye kewlgeye is offline
Member
 
Join Date: Apr 2008
Posts: 34
kewlgeye is on a distinguished road
Adding to JList with Netbeans
Ok, I don't really understand where this defaultlistmodel goes, and

THere is a JList constructor that has a parameter ListModel...
I read about this but I keep forgetting what constructors are and a parameter?

do I do something like this

public class defaultlist {
public void defaultListModel() {
listmodel.setjlist1.(jTextField1)
listmodel.setjlist1.(jTextField2)
}
}

and then in the add button actionperformed event
do this

new defaultListModel();
Reply With Quote