I have same Problem,But after follow some step ,I got success to use Scala.swing.
Here are some Steps that I follow,hope it will help you.
1)add external jar to javaBuildPath(Right click on Project ->Proprties-> javaBuildPath->add external Jars-> add scala.swing.x)
2)after do this I Over come typeNotFound errors
3) create class in that you want to do code for swing
4) create object and in main() you have to create above class object by new keyword
5)After doing this, it allows you to access methods of SimpleSwingApplication, so call startup().
6) Thats all,
Consider following example if might be helps you to understand what i mean to say,
class FirstUI extends SimpleSwingApplication
{
def top= new MainFrame {
title = "GUI Program #1"
preferredSize = new Dimension(320, 240)
contents = new Label("Here is the contents!")
}
}
object First
{
def main(str: Array[String])
{
val f =new FirstUI
f.startup(str)
}
}
save this file as First.scala and Run it.Hope this will help you.