Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's wrong with my scala.swing?

Tags:

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.

like image 288
Ivan Avatar asked Jan 26 '12 20:01

Ivan


1 Answers

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.

like image 100
om-nom-nom Avatar answered Nov 15 '22 06:11

om-nom-nom