문제

I wan' t to customize the apparence of my JTable. I wan' t to remove the column identifiers that's hold the column name. I don' t want to simply leave it blank but I wan't to "hide" that. any suggestion? thanks!

도움이 되었습니까?

해결책

You can hide the table header this way:

table.getTableHeader().setVisible(false);

Or you can remove it entirely:

table.setTableHeader(null);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top