You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](http://waffle.io/scala/scala-swing)
7
7
8
-
This is now community maintained by @benhutchison & @Sciss. If you are interested in helping then contact them or @adriaanm.
8
+
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).
9
9
10
-
This is a UI library that will wrap most of Java Swing for Scala in a straightforward manner.
10
+
## Adding an sbt dependency
11
+
12
+
To use scala-swing from sbt, add this to your `build.sbt`:
This is a UI library that wraps most of Java Swing for Scala in a straightforward manner.
11
21
The widget class hierarchy loosely resembles that of Java Swing. The main differences are:
12
22
13
23
- In Java Swing all components are containers per default. This does not make much sense for
@@ -98,11 +108,11 @@ new Frame {
98
108
99
109
## Versions
100
110
101
-
- 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.
111
+
- 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.
102
112
- The `2.0.x` branch is compiled with JDK 8 and released for Scala 2.11 and 2.12.
103
113
- When using Scala 2.11, you can use the Scala swing 2.0.x releases on JDK 6 or newer.
104
114
- Scala 2.12 requires you to use JDK 8 (that has nothing to do with scala-swing).
105
-
-Version`2.1.0` adds support for Scala 2.13, while dropping Scala 2.10.
115
+
-The`2.1.x` series adds support for Scala 2.13, while dropping Scala 2.10.
106
116
107
117
The reason to have different major versions is to allow for binary incompatible changes. Also, some java-swing classes were
108
118
generified in JDK 7 (see [SI-3634](https://issues.scala-lang.org/browse/SI-3634)) and require the scala-swing sources to be adjusted.
@@ -117,4 +127,4 @@ at [http://www.scala-lang.org/documentation/api.html](http://www.scala-lang.org/
117
127
## Current Work
118
128
119
129
Current changes are being made on the `work` branch.
120
-
Last published version is found on the `main` branch.
130
+
Last published version is found on the `main` branch.
0 commit comments