Ivan
Ivan

Reputation: 64207

What's wrong with my scala.swing?

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.

Upvotes: 5

Views: 1999

Answers (1)

om-nom-nom
om-nom-nom

Reputation: 62835

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.

Upvotes: 13

Related Questions