Registry / utility / scala-swing

scala-swing

JSON →
library2.10.7javamavenunverified

Scala Swing provides a Scala wrapper around Java Swing for building graphical user interfaces.

<dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-swing</artifactId> <version>2.10.7</version> </dependency>
INSTALL
IMPORT
SIG · SCALA-SWING
S
scala-swing
utilityjavav2.10.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SimpleSwingApplication
scala.swing.SimpleSwingApplication

Create a simple Swing window with a button.

import scala.swing._ object HelloWorld extends SimpleSwingApplication { def top = new MainFrame { title = "Hello, World!" contents = new Button("Click Me") } }
Debug
Known issues
gotchaScala Swing is not actively maintained and may have compatibility issues with newer Scala versions.
fix
Consider using JavaFX or other GUI frameworks for new projects.
affects: >=2.10.0
Upgrade
Version history
2.10.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
scala-swing — mvn dependency:get scala-swing · libregistry