java give me this error [Ljava.lang.String;@b6e39f

hi master

sir i use this code fill jlist with vect but java give me error this error [Ljava.lang.String;@b6e39f

my code

String[] jlf = {"Muhammad","Fahim","Aamir"};

Vector myVector = new Vector();

myVector.addElement(jlf);

jList1.setListData(myVector);

please give me idea how i fill the jlost and combobox with vector

thank

aamir

[393 byte] By [mfa786a] at [2007-11-26 15:01:17]
# 1
You should use either an array or a vector in setListData, not a vector that contains an array.jList1.setListData(jlf);
Rodney_McKaya at 2007-7-8 8:50:13 > top of Java-index,Desktop,Core GUI APIs...
# 2

Quit multi posting. You just posted this question a few minutes ago.

You've been asked multiple times to use the "Code" formatting tags so the code retains its original formatting.

What do you think all the buttons above the message box are for? Did you ever wonder what the "Formatting tips" like was for?

Not only haven't you bother to figure out how to use the "Code" formatting tags, but you haven't even bothered to read the Swing tutorial. Again in the past I gave you a link to the Swing tutorial. If shows you how to use a JList and a JComboBox. The tutorials have working examples.

camickra at 2007-7-8 8:50:13 > top of Java-index,Desktop,Core GUI APIs...