Java ArrayLists to GUI
I'm using a JFrame to make a program where you can search for music.
When you have searched it should show some info.
So i have 4 arrayLists(Name,Type,Price,Year).
These arrayLists need to be shown as a list in my GUI kinda like this.
( http://i.imgur.com/U5RW2.png )
Now my question is, What is the best way to show this?
Is it JTable?
You can't use 4x ArrayList as there isn't a real relationship between them. Use a Vector of Vectors, or you can write a custom TableModel to do this with. JTable does make the most sense for what you are trying to display though.
|All times are GMT +1. The time now is 06:50 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.