DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Displaying Arraylist objects in a Table format

  1. #1
    Join Date
    Oct 2005

    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.

  2. #2
    Join Date
    Sep 2005

    Question 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.

Similar Threads

  1. Replies: 1
    Last Post: 03-09-2005, 12:58 PM
  2. Replies: 2
    Last Post: 10-08-2001, 03:13 AM
  3. How to format data in a table
    By Anil in forum XML
    Replies: 1
    Last Post: 02-22-2001, 06:43 PM
  4. VB, Regional Settings, and Access
    By Greg Rothlander in forum VB Classic
    Replies: 4
    Last Post: 12-13-2000, 01:11 AM
  5. Replies: 0
    Last Post: 04-16-2000, 02:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center