Putting a JTable inside a JTable cell?

Discussion in 'Java' started by Tivo Escobar, Dec 15, 2003.

  1. Tivo Escobar

    Tivo Escobar Guest

    Hi guys,

    I was starting to build a frame using Swing and had the weird ideia of
    putting a JScrollPane/JTable inside a JTable cell. I have already
    developed other tables with specialized Models, CellRenderers and
    CellEditors, but never tried to draw a panel using a CellRenderer. Has
    anybody ever tried it? Any sample code?

    The point is that I need to present data in a hierarchical manner. For
    example, imagine that the main table is called "Models Table" and
    presents information about car models. One of the columns of this
    table is called "Cars Column" and presents information about each car
    of that specific model. My data can grow during runtime, that is why
    using tables. Using JTree could solve the hierarchical problem, but
    would not fit visually. Any other suggestion?

    Thanx in advance,
    Tivo
    Tivo Escobar, Dec 15, 2003
    #1
    1. Advertising

  2. Tivo Escobar

    manusa

    Joined:
    Apr 12, 2007
    Messages:
    1
    manusa, Apr 12, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve C. Orr, MCSD
    Replies:
    0
    Views:
    363
    Steve C. Orr, MCSD
    Jul 24, 2003
  2. Ed West
    Replies:
    1
    Views:
    884
    Steve Willcock
    Aug 9, 2004
  3. Saurabh
    Replies:
    6
    Views:
    4,481
    Chris Smith
    May 30, 2004
  4. news.rcn.com
    Replies:
    1
    Views:
    9,618
    Chris Smith
    Jul 12, 2004
  5. Peter Bailey
    Replies:
    2
    Views:
    79
    Peter Bailey
    Sep 29, 2006
Loading...

Share This Page