Solved

Assigning the content of an arrayList to JList

Posted on 2006-07-23
2
2,521 Views
Last Modified: 2006-11-18
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);
0
Comment
Question by:javamate06
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 30 total points
Comment Utility
You can do

JList list = new JList(new Vector(arrayList));
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:-)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 62
powerN  challenge 3 46
where is session ID cache stored 1 38
topping1 challenge 7 48
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now