Problems with Scala Swing library

白昼怎懂夜的黑 提交于 2019-12-06 14:09:05

No - the scala swing library does not support sorting of Table - your best best is to revert to using JTable (i.e. the java swing class). A couple of things to note:

  1. Don't use DefaultTableModel - use AbstractTableModel and implement the getSize and getValueAt methods. A table model should follow the adapter pattern

  2. The appalling Java generics on the RowSorter are annoying when used with scala. You will have to use explicit generic type arguments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!