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();
arl.add("1asdsd");
arl.add("2asdsd");
arl.add("3asdsd");
Object obj = arl.clone();
JList list = new JList(obj);
how to bind the above code.Now the code give an error.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…