i have a JList and an ArrayList.How to bind the datas in arraylist to the jlist.Are the any alternative methods?
ArrayList arl = new ArrayList(); ar
Another option is:
DefaultListModel Jlista = new DefaultListModel(); public Form1() { jList1.setModel(Jlista); } public void yourFunction(){ Jlista.addElement("newElement"); }