F
farseer
i am thinking of using the sampler TableSorter provided by Sun:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#"sorting"
I have a question however.
I am writing and app that recieves data from a feed and displays it in
table. So there is very little user interaction with the table.
Basically i have a thread that recieves the data, processes and
adds/updates/removes the data from the TableModel using some custom
methods (like addRow, getRow, etc..). When any either a cell or row
changes, i do fire the appropriate Table events so the JTable reflects
the changes.
Now if i were to add the TableSorter in between my Jtable and my
TableModel, can i continue to update my table model the same way i have
been doing or do i need to now add and call methods to TableSorter and
delegate to my TableModel methods (addRow, getRow, deleteRow, etc.).
In other words, will i now have to interface directly thru TableSorter
instead of My existing table model?
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#"sorting"
I have a question however.
I am writing and app that recieves data from a feed and displays it in
table. So there is very little user interaction with the table.
Basically i have a thread that recieves the data, processes and
adds/updates/removes the data from the TableModel using some custom
methods (like addRow, getRow, etc..). When any either a cell or row
changes, i do fire the appropriate Table events so the JTable reflects
the changes.
Now if i were to add the TableSorter in between my Jtable and my
TableModel, can i continue to update my table model the same way i have
been doing or do i need to now add and call methods to TableSorter and
delegate to my TableModel methods (addRow, getRow, deleteRow, etc.).
In other words, will i now have to interface directly thru TableSorter
instead of My existing table model?