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
This is now community maintained. If you're interested in helping then contact @adriaanm or @andy1138
11
-
Questions can asked on the [Google Group](https://groups.google.com/forum/#!forum/scala-swing)
9
+
This is now community maintained. If you're interested in helping then contact @adriaanm or @andy1138.
10
+
Questions can asked on the [Google Group](https://groups.google.com/forum/#!forum/scala-swing).
12
11
13
12
This is a UI library that will wrap most of Java Swing for Scala in a straightforward manner.
14
13
The widget class hierarchy loosely resembles that of Java Swing. The main differences are:
15
14
16
15
- In Java Swing all components are containers per default. This doesn't make much sense for
17
16
a number of components, like TextField, CheckBox, RadioButton, and so on. Our guess is that
18
17
this architecture was chosen because Java lacks multiple inheritance.
19
-
In scala.swing, components that can have child components extend the Container trait.
18
+
In scala-swing, components that can have child components extend the Container trait.
20
19
- Layout managers and panels are coupled. There is no way to exchange the layout manager
21
20
of a panel. As a result, the layout constraints for widgets can be typed.
22
21
(Note that you gain more type-safety and don't loose much flexibility here. Besides
@@ -25,22 +24,20 @@ The widget class hierarchy loosely resembles that of Java Swing. The main differ
25
24
child component. In the end, it is not more work to move all children to a newly created
26
25
panel.)
27
26
28
-
The event system. TODO
27
+
The event system. TODO.
29
28
30
29
- For more details see [SIP-8](docs/SIP-8.md)
31
30
32
-
The library comprises three main packages:
31
+
The library comprises two main packages:
33
32
34
33
-`scala.swing`: All widget classes and traits.
35
34
-`scala.swing.event`: The event hierarchy.
36
35
37
36
38
-
Examples
39
-
---
37
+
## Examples
40
38
41
39
A number of examples can be found in the `examples` project.
42
-
A good place to start is `[12] scala.swing.examples.UIDemo` (_index number may be different for you_). This gives pulls in the all the other examples into a tabbed window.
43
-
40
+
A good place to start is `[12] scala.swing.examples.UIDemo` (_index number may be different for you_). This pulls in the all the other examples into a tabbed window.
44
41
45
42
```
46
43
$ sbt examples/run
@@ -68,33 +65,27 @@ Enter number:
68
65
```
69
66
70
67
71
-
72
-
73
-
Versions
74
-
---
68
+
## Versions
75
69
76
-
- Version 1.xx.xx branch is compiled with java6,
77
-
- Version 2.xx.xx compiled with java7, targeted to java6.
78
-
79
-
_Reason for different versions can be found at [SI-3634](https://issues.scala-lang.org/browse/SI-3634)_
80
-
70
+
- 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.
71
+
- The `2.0.x` branch is compiled with JDK 8 and released for Scala 2.11 and 2.12.
72
+
- When using Scala 2.11, you can use the Scala swing 2.0.x releases on JDK 6 or newer.
73
+
- Scala 2.12 requires you to use JDK 8 (that has nothing to do with scala-swing).
81
74
75
+
The reason to have two versions is to allow for binary incompatible changes. Also, some java-swing classes were generified in JDK 7 (see [SI-3634](https://issues.scala-lang.org/browse/SI-3634)) and require the scala-swing soruces to be adjusted.
82
76
83
-
ScalaDocs
84
-
---
85
77
86
-
Documentation for scala-swing included in 2.11.1 is can be found [here](http://www.scala-lang.org/api/2.11.1/scala-swing/#scala.swing.package)
78
+
## API documentation (Scaladoc)
87
79
88
-
Other version can be found at [http://www.scala-lang.org/documentation/api.html](http://www.scala-lang.org/documentation/api.html)
80
+
The API documentation for scala-swing can be found at [http://www.scala-lang.org/documentation/api.html](http://www.scala-lang.org/documentation/api.html).
89
81
90
82
91
-
Current Work
92
-
---
83
+
## Current Work
93
84
94
-
Current changes are being made on the **java7** branch. This is to mainly because of the EOL of java6 and the generification that happened between jdk6 and jdk7 requiring a difference in the source code. This class files are targeted at java6 and will run with all versions upwards.
85
+
Current changes are being made on the `2.0.x` branch.
95
86
96
-
<br>
97
87
98
-
_Notes:_
88
+
## Known Issues
99
89
100
90
- Visual appearance of combo boxes using the GTK LaF is broken on JDKs < 1.7b30. This is a Java Swing problem.
0 commit comments