Is any expert here?Please help!

Hi, I want to retrieve data from vector to Jlist and TextFileds. Here is the situation: The vector likes this: {[string1,string2,string3], [string11,string12,string13],...}.So,how can I put string1 to Jlist, string2 to JTextField1, and string3 to JTextField2?
Thanks!

Is this what you're after ? If not, you really need to give more information about exactly what you're trying to achieve. Example code would be best.
import java.util.*;
public class ArrayExample
   * Demonstrate how to access references within
   * vectors of vectors
   * @param argv Ignored.
  public static void main(String[] argv)
    // contentToAdd will be formatted to contain the data as you described it.
    Vector contentToAdd = new Vector();
    Vector v1 = new Vector(Arrays.asList( new String[] { "string1", "string2", "string3" } ));
    Vector v2 = new Vector(Arrays.asList( new String[] { "string11", "string12", "string13" } ));
    contentToAdd.add(v1);
    contentToAdd.add(v2);
    // contentToAdd now contanis the appropriate data.
    // Iterate through the vector (of vectors)
    Iterator i = contentToAdd.iterator();
    while(i.hasNext())
      // Grab the nth vector
      Vector currentEntry = (Vector)i.next();
      // Now we've got a reference to the "internal" vectors, we can display their
      // contents, add them to components, or whatever we want.
      System.out.println("Add me to JList:       " + currentEntry.elementAt(0));
      System.out.println("Add me to JTextField1: " + currentEntry.elementAt(1));
      System.out.println("Add me to JTextField2: " + currentEntry.elementAt(2));
}

Similar Messages

Maybe you are looking for

  • Creating a PDF attachment and send it via Email

    Hi, I have following problem. I want to send a Purchase Order via Mail to email inbox. I already read in the forum that I should use the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'. Could anyone please provide me with some information about that. So how can I

  • Messages and FaceTime failing

    Everytime I connect to messages and FaceTime I'm faced with these two errors "There was a problem with Messages. You need to quit and open Messages again." and There was a problem with FaceTime. You need to quit and open FaceTime again. It was fine w

  • EDI mapping questions

    Dear SAP Friends, My client has planned to develop a program to convert SAP payment run data (F110 for Checks only) to EDI 820 format. I have some points to know the information about EDI 820 format for the following segments to map them to SAP table

  • People can't hear when whe i / receiving a call on my Z10

    Hi, im desperatly in need of help. When i make or receive a call, the other person can't hear me, i must either put it on speaker or put earphones for them to hear me. Can anyone help me please!!!!!!

  • Buying creative cloud products in South Africa

    I'm trying to buy Adobe InDesign (cloud option) online. I live in South Africa and if you go to adobe.com/africa/purchase, it gives you the option to go to the South African Adobe store.  When I click on the link, everything goes well until I get to