I've tried to use scala.swing package, but it can't be found. The compiler (2.9.1) says "swing is not a member of scala". Any ideas? Everything else seems working Ok, I haven't experienced any problems with other Scala packages.
So, to wrap up the solution.
First of all you need to define dependency on swing library. Add the following to your build.sbt file:
libraryDependencies += "org.scala-lang" % "scala-swing" % "2.9.0-1"
If you're using Intellij IDEA, with sbt-idea plugin, invoke gen-idea to rebuild project to let IDEA know about swing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With