Re: How do I set table header height... without side effects?



"Jeff Higgins" <oohiggins@xxxxxxxxx> wrote in message news:5YTTh.286$2D5.271@xxxxxxxxxxxxxxx

Qu0ll wrote:
table.getTableHeader()
.setPreferredSize(new Dimension(pane.getWidth(), 24));

table.getTableHeader()
.setPreferredSize(new Dimension(table.getColumnModel()
.getTotalColumnWidth(), 24));



Thanks, that's got it. I need to track table resize events too and re-set the height as well accordingly.

--
And loving it,

-Q
_________________________________________________
Qu0llSixFour@xxxxxxxxx
(Replace the "SixFour" with numbers to email me)

.


Quantcast