JTable表格自适应宽度

table.getcolumn(i).pack()

A:

 A:简单封装下就这样

A:再次提醒,有中文可能宽度不对

原文地址:https://www.cnblogs.com/wwssgg/p/15555394.html