DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    7

    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

  2. #2
    Join Date
    Mar 2004
    Posts
    78
    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

  1. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM
  2. Replies: 9
    Last Post: 03-21-2002, 06:38 AM
  3. JAVADOTNET !!!
    By Dharmesh in forum .NET
    Replies: 4
    Last Post: 10-01-2001, 03:47 PM
  4. Java Developers and Java Architect for exciting projects in Chicago area
    By Keith Franklin, MCSD in forum java.announcements
    Replies: 0
    Last Post: 08-18-2000, 06:37 PM
  5. Learning Java...
    By Jason J. in forum Java
    Replies: 0
    Last Post: 06-28-2000, 09:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links