在库scala-swing_2.12:2.0.0中,类scala.swing.Table
的源代码,第154行:
def model = peer.getModel()
def model_=(x: TableModel) = {
peer.setModel(x)
model.removeTableModelListener(modelListener)
model.addTableModelListener(modelListener)
}
我认为应该是:
def model = peer.getModel()
def model_=(x: TableModel) = {
model.removeTableModelListener(modelListener)
peer.setModel(x)
model.addTableModelListener(modelListener)
}
是吗?