我对 Scala-SwingTable
设置时没有正确排序数字感到困惑t.peer.setAutoCreateRowSorter(true)
。
这是来自我的表模型:
override def getColumnClass(colIdx: Int): Class[_] =
(colIdx: @switch) match {
case 0 => classOf[Int]
case 1 => classOf[String]
case 2 => classOf[Double]
}
但似乎第一列和第三列是按字符串表示排序的。