I'm using addChangeListener from the Java Swing API in my Scala program. The compiler of ScalaFiddle indicates an error in the following code :
spinner_1.addChangeListener(e => {
...
})
error: missing parameter type spinner_1.addChangeListener(e => {
I tried to write e : ChangeListener, but it didn't solve this problem. I didn't find something useful for that in Scala's documentation.
How could I deal with it ?