|
4 | 4 | [<img src="https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-swing_2.11.svg?label=latest%20release%20for%202.11"/>](http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-swing_2.11)
|
5 | 5 | [<img src="https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-swing_2.12.svg?label=latest%20release%20for%202.12"/>](http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-swing_2.12)
|
6 | 6 |
|
7 |
| -This is now community maintained by @benhutchison & @Sciss. If you are interested in helping then contact them or @adriaanm. |
| 7 | +This is now community maintained by [@Sciss](https://github.com/Sciss) and [@benhutchison](https://github.com/benhutchison). If you are interested in helping then contact them or [@adriaanm](https://github.com/adriaanm). |
8 | 8 |
|
9 |
| -This is a UI library that will wrap most of Java Swing for Scala in a straightforward manner. |
| 9 | +## Adding an sbt dependency |
| 10 | + |
| 11 | +To use scala-swing from sbt, add this to your `build.sbt`: |
| 12 | + |
| 13 | +``` |
| 14 | +libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "2.1.1" |
| 15 | +``` |
| 16 | + |
| 17 | +## About scala-swing |
| 18 | + |
| 19 | +This is a UI library that wraps most of Java Swing for Scala in a straightforward manner. |
10 | 20 | The widget class hierarchy loosely resembles that of Java Swing. The main differences are:
|
11 | 21 |
|
12 | 22 | - In Java Swing all components are containers per default. This does not make much sense for
|
@@ -97,11 +107,11 @@ new Frame {
|
97 | 107 |
|
98 | 108 | ## Versions
|
99 | 109 |
|
100 |
| -- The `1.0.x` branch is compiled with JDK 6 and released for Scala 2.10, 2.11. The 1.0.x releases can be used with both Scala versions on JDK 6 or newer. |
| 110 | +- The `1.0.x` branch is compiled with JDK 6 and released for Scala 2.11 and 2.11. The 1.0.x releases can be used with both Scala versions on JDK 6 or newer. |
101 | 111 | - The `2.0.x` branch is compiled with JDK 8 and released for Scala 2.11 and 2.12.
|
102 | 112 | - When using Scala 2.11, you can use the Scala swing 2.0.x releases on JDK 6 or newer.
|
103 | 113 | - Scala 2.12 requires you to use JDK 8 (that has nothing to do with scala-swing).
|
104 |
| -- Version `2.1.0` adds support for Scala 2.13, while dropping Scala 2.10. |
| 114 | +- The `2.1.x` series adds support for Scala 2.13, while dropping Scala 2.10. |
105 | 115 |
|
106 | 116 | The reason to have different major versions is to allow for binary incompatible changes. Also, some java-swing classes were
|
107 | 117 | generified in JDK 7 (see [SI-3634](https://issues.scala-lang.org/browse/SI-3634)) and require the scala-swing sources to be adjusted.
|
|
0 commit comments