I got this list which contains some data that I gain from a file.
List<String> destinationList = new ArrayList<String>();
I then have a JTable which I want to transfer the data from the list into. I saw an example on how to enter data into JTable:
Object[][] data = {
{"Kathy", "Smith",
"Snowboarding", new Integer(5), new Boolean(false)},
{"John", "Doe",
"Rowing", new Integer(3), new Boolean(true)},
{"Sue", "Black",
"Knitting", new Integer(2), new Boolean(false)},
{"Jane", "White",
"Speed reading", new Integer(20), new Boolean(true)},
{"Joe", "Brown",
"Pool", new Integer(10), new Boolean(false)}
};
I am wondering if I somehow can past the data from my list into the Object[][] data so I can then transfer it into my JTable. Thanks in advance!