作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
最佳答案
经过反复试验,我发现我做错了什么。
EventTableModel
必须使用SortedList
实例进行实例化,而不是EventList
。来自示例:
private EventList<Issue> issuesEventList = new BasicEventList<Issue>();
...
SortedList<Issue> sortedIssues = new SortedList<Issue>(issuesEventList, null);
// create a panel with a table
JPanel panel = new JPanel();
// be careful not to put issuesEventList in here, it has to be the sortedIssues list
EventTableModel<Issue> issuesTableModel = new EventTableModel<Issue>(sortedIssues, new IssueTableFormat());
关于java - 釉面列表 - 默认排序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10421112/
我是一名优秀的程序员,十分优秀!