Link to home
Start Free TrialLog in
Avatar of javamate06
javamate06

asked on

Assigning the content of an arrayList to JList

I want to assign the content of an arrayList to JList it cannot be done.
But if I use Array it was OK.

So, Can I assign an arrayList to JList with out converting the arrayList to array?

-----------------------

I tried this :


JList list = new JList(arrayList);
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-)