开发者

Java: Possible to replace TableModel in an existing JTable?

Is it possible to replace the entire TableModel in an existing JTable or do I have to r开发者_JAVA技巧ecreate the JTable?


You can set a new model using the JTable.setModel() method

Check the Javadocs for details


When you change the model you are stuck with old column titles. getColumnName() only gets called on initialization.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜