Skip to content

Commit 286100f

Browse files
authored
Merge pull request #101 from scala/SethTisue-patch-1
round of readme tweaks
2 parents d4edd9b + 0a66e6c commit 286100f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44
[<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)
55
[<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)
66

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).
88

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.
1020
The widget class hierarchy loosely resembles that of Java Swing. The main differences are:
1121

1222
- In Java Swing all components are containers per default. This does not make much sense for
@@ -97,11 +107,11 @@ new Frame {
97107

98108
## Versions
99109

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.
101111
- The `2.0.x` branch is compiled with JDK 8 and released for Scala 2.11 and 2.12.
102112
- When using Scala 2.11, you can use the Scala swing 2.0.x releases on JDK 6 or newer.
103113
- 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.
105115

106116
The reason to have different major versions is to allow for binary incompatible changes. Also, some java-swing classes were
107117
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

Comments
 (0)