Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不想自定义我的JTable. 我不想删除包含列名的列标识符。我不想简单地将其留空,但我不想“隐藏”它。有什么建议吗?谢谢!
JTable
您可以通过这种方式隐藏表头:
table.getTableHeader().setVisible(false);
或者您可以完全删除它:
table.setTableHeader(null);