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
You don't need to clone the ArrayList. Just call toArray()
JList list = new JList(arl.toArray());