-
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
-
How about this?
String[] data = {"one", "two", "three", "four"};
JList dataList = new JList(data);
or :
Vector vector = new Vector();
vector.add("one");
....
vector.add("four");
JList dataList = new JList(vector);
Last edited by NewUniverse; 01-13-2007 at 05:11 AM.
Similar Threads
-
By Mike Tsakiris in forum .NET
Replies: 11
Last Post: 10-04-2002, 05:32 PM
-
By xpess in forum Careers
Replies: 9
Last Post: 03-21-2002, 06:38 AM
-
By Dharmesh in forum .NET
Replies: 4
Last Post: 10-01-2001, 03:47 PM
-
By Keith Franklin, MCSD in forum java.announcements
Replies: 0
Last Post: 08-18-2000, 06:37 PM
-
By Jason J. in forum Java
Replies: 0
Last Post: 06-28-2000, 09:57 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|