Monday, 16 June 2008

Swing Table with frozen columns part III

Jeanette from SwingX pointed out that I forgot to keep the selection in sync.
Follows a snapshot of my implementation, both tables are kept in sync whether you click on the right table or the left(frozen) table.
Not sure how robust this is, but I relied on the Focus gained or lost events.

1 comment:

Tango Juliet said...

Check this out: selection model

Basically, grid.setSelectionModel(frozenGrid.getSelectionModel()); works great

Blog Archive