Glazed列出在NetBeans中描述的EventTableModel类

时间:2011-09-26 11:12:27

标签: java swing jtable glazedlists

我尝试使用Glazed List创建dinamically改变的TableModel。一切正常,但类名称EventTableModel是用删除文字写的(我使用的是NetBeans IDE)。我在看类实现 - 这里没有@Deprecated注释。有谁遇到过这个问题?这是什么意思?我从这里下载了最新的二进制.jar:download page

screenshot

1 个答案:

答案 0 :(得分:2)

您可能没有查看正确的实现,我刚刚从您提供的链接下载了源代码,我可以看到以下内容,摘自EventTableModel javadoc:

* @deprecated Use {@link DefaultEventTableModel} instead. This class will be removed in the GL
*             2.0 release. The wrapping of the source list with an EDT safe list has been
*             determined to be undesirable (it is better for the user to provide their own EDT
*             safe list).

因此您只需按照此处的说明操作即可使用DefaultEventTableModel