No....
Something like,
class MyMainClass{
DefaultListModel dlm = new DefaultListModel();
JList jlist = new JList( dlm );
//invoke this when add button fired
private static final void addList(){
dlm.addElement((Object)jTextField1); // add name
dlm.addElement((Object)jTextField2); // add lastname
}
}
and observe what happens to jlist...
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Last edited by sukatoa : 06-03-2008 at 10:49 AM.
|