A class to select displayed columns in a Swing JTable
The idea is to have a context menu on the table header so that the user can select which columns to display. That is, without affecting the table model at all.
As it is now, it's usable but could use much more work. It doesn't handle model change or structural changes within the model, for example. But it works. It is intended to be used as an illustration to this short TDD tutorial:
A very similar work can be found here: