How to add elements in JLIst in runtime (netBeans)
807569May 20 2006 — edited May 27 2006hai
i have to add elements in the JList at the runtime.
What i have tried is that
DefaultListModel listmod=new DefaultListModel();
listmod.addElement("sorry");
After that in the
jList=new JList(listmod);
Here in this case the JList does not contains th element " sorry"
How this could be given in the netbeans... But the above coding works well in the Eclilpse but it does not works as well as i t does not give any error
Thanks
Shanthy