I have an arraylist and each element of the arrayList contains a small arrayList of data.
I need to create a table from this data. What would you recommend being the best route to take with solving this?
Thanks in advance for any help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To display a GUI table of a List of lists, I would create a class that implements the ‘TableModel’ interface, and has a constructor that takes in your ‘List>’
you would use this model with your list like so:
EDIT I can show you how to implement TableModel if you would like.