Lindsey George wrote:
I would like to hide certain columns, or provide a user with a menu to
hide certain columns in a Table or TableTree. For example, in an
e-mail client I would have "Sender" "Subject" "Date" columns, and I
want to hide, say, the "Date" column. Or if I run my application in
regular mode as opposed to development/debug mode, I would like to
show or hide columns accordingly. Any suggestions on how to accomplish
this?
Thanks,
Lindsey.
Hiding a column:
column.setWidth(0);
column.setResizeable(false);
Triggering a menue:
Right clicks on a table headers are not recognized, a workaround could
be e.g. STRG+left klick. To get the STRG modifier you have to add a
filter to the display. The keymasks of the SelectionEvents for the
tableHeader seem to be buggy.
Yves