If a JTable/JXTable is placed within a JScrollPane the upper right corner remains blank or if the ColumnControl is set for being visible a button appears (JXTable only).

In most cases this doesn't look very pretty. For good looking tables it is possible to install a JTableHeader to the corner. In case of using a JXTable it is a little bit trickier because the columnButton painting has to be replaced by our own painting method.

All relevant lines are highlighted. Press the "Run..." button to start the example.