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.