R
Richard B. Christ
I am working with a table (not the JTable but a fully customized
extension of
JComponent). With this table it is possible to have some rows selected
and to have column sorted(s) for instance. This table implementation
is per default embedded in a JScrollPane.
After having changed the whole model of the table, I would like to
retrieve the
previous state (defined by the position of the scrollbar, the selected
rows and the sorted column(s)) of the table. While doing this Java
does the things one after the other so that the user sees the whole
process (what is not very elegant):
- user gets a new table
- old selected rows gets selected
- old sorted columns get sorted
- scrollbar updates its state
I would like Java making all these updating steps before showing the
table. I would like Java retarding the repainting of the table until
the table has selected its previous selected rows, until the table has
sorted its previous sorted columns and so on. How can I achieve that?
Any help would be gracefully appreciated. Cheers,
richard
extension of
JComponent). With this table it is possible to have some rows selected
and to have column sorted(s) for instance. This table implementation
is per default embedded in a JScrollPane.
After having changed the whole model of the table, I would like to
retrieve the
previous state (defined by the position of the scrollbar, the selected
rows and the sorted column(s)) of the table. While doing this Java
does the things one after the other so that the user sees the whole
process (what is not very elegant):
- user gets a new table
- old selected rows gets selected
- old sorted columns get sorted
- scrollbar updates its state
I would like Java making all these updating steps before showing the
table. I would like Java retarding the repainting of the table until
the table has selected its previous selected rows, until the table has
sorted its previous sorted columns and so on. How can I achieve that?
Any help would be gracefully appreciated. Cheers,
richard