Jtable - complex tables.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • farseer

    #1

    Jtable - complex tables.

    Hi, i am not sure how to describe this, so i will give an example of
    what i am trying to do:


    Name Descr Price Name Descr Price
    XXX XXXX 10 WWW TTTT 12
    YYY YYYY 23 VVV TTTT 13
    ZZZ ZZZZ 14 TTT TTTT 33


    Basically, i am trying to create a table that contains three columns.
    After a certain number of rows has been displayed, it will then "roll
    over" display it's records to the right. i am not sure how to put this

    in proper words, but i hope the example above explains what i am trying

    to do.


    Anyone have an idea or suggestions on how to do this?

  • Raymond DeCampo

    #2
    Re: Jtable - complex tables.

    farseer wrote:[color=blue]
    > Hi, i am not sure how to describe this, so i will give an example of
    > what i am trying to do:
    >
    >
    > Name Descr Price Name Descr Price
    > XXX XXXX 10 WWW TTTT 12
    > YYY YYYY 23 VVV TTTT 13
    > ZZZ ZZZZ 14 TTT TTTT 33
    >
    >
    > Basically, i am trying to create a table that contains three columns.
    > After a certain number of rows has been displayed, it will then "roll
    > over" display it's records to the right. i am not sure how to put this
    >
    > in proper words, but i hope the example above explains what i am trying
    >
    > to do.
    >
    >
    > Anyone have an idea or suggestions on how to do this?
    >[/color]
    JTable takes it cues from JTableModel. You will have to implement a
    JTableModel that does what you want at the right time. Be sure to fire
    the right events when the model changes.

    HTH,
    Ray

    --
    XML is the programmer's duct tape.

    Comment

    Working...