简体   繁体   English

删除JTable列标识符

[英]Remove JTable Column identifier

I wan' t to customize the apparence of my JTable . 我不会自定义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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM