Displaying Arraylist objects in a Table format
I'm writing a program that uses an Arraylist to store data.
This data is nothing more than some Strings, ints, and chars.
I'm trying to figure out a good way to print out the Arraylist objects, preferably in a table format.
To my knowledge, JTable can only print out two dimensional arrays...but i could be wrong.
If anyone can inform me of a good way to do this, I'd be really grateful.
Additionally, I'm still new to Arraylist, and I'm not entirely sure of the protocol to access variables from an Arraylist object....
Also, if displaying my code would help, let me know. I'd just have to upload the files.
Last edited by naazrael; 11-10-2005 at 03:50 PM.
Try using a JComboBox?
If it is ok with you, why not try using a JComboBox on one of the cells of your table to display another array of data.
By davebent32 in forum Java
Last Post: 03-09-2005, 12:58 PM
Last Post: 10-08-2001, 04:13 AM
Last Post: 02-22-2001, 06:43 PM
By Greg Rothlander in forum VB Classic
Last Post: 12-13-2000, 01:11 AM
Last Post: 04-16-2000, 03:28 PM
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