如何刷新JTable

试试validate()   
下面是介绍:
public void validate()
Validates this container and all of its subcomponents.
AWT uses validate to cause a container to lay out its subcomponents again after the components it contains have been added to or modified.


继承AbstractTableModle , 然后用setData()
刷新model数据, 再调用Model.fireTableDataChanged()
不用去再repaint()表格
好像是这个方法

你可能感兴趣的:(Components)