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.
我在用:
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
当我的表列标题的最后一个结束时,直到表的末尾有一个难看的空白。那是因为我的表格背景设置为黑色。我怎样才能摆脱空白?
如果我正确理解了您的问题,我相信它与 Santhosh Kumar 在这里描述和解决的问题相似:JTable 变得更丑了 AUTO_RESIZE_OFF