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