1- scala.swing BETA
1+ scala-swing (unsupported) [ <img src =" https://api.travis-ci.org/scala/scala-swing.png " />] ( https://travis-ci.org/scala/scala-swing )
2+ =========
3+
4+ We welcome contributions, but do not actively maintain this library.
5+ If you're interested in becoming a maintainer, please contact @adriaanm .
26
37This is a UI library that will wrap most of Java Swing for Scala in a straightforward manner.
48The widget class hierarchy loosely resembles that of Java Swing. The main differences are:
59
6- In Java Swing all components are containers per default. This doesn't make much sense for
10+ - In Java Swing all components are containers per default. This doesn't make much sense for
711 a number of components, like TextField, CheckBox, RadioButton, and so on. Our guess is that
812 this architecture was chosen because Java lacks multiple inheritance.
913 In scala.swing, components that can have child components extend the Container trait.
10-
11- Layout managers and panels are coupled. There is no way to exchange the layout manager
14+ - Layout managers and panels are coupled. There is no way to exchange the layout manager
1215 of a panel. As a result, the layout constraints for widgets can be typed.
1316 (Note that you gain more type-safety and don't loose much flexibility here. Besides
1417 being not a common operation, exchanging the layout manager of a panel in Java
@@ -21,17 +24,11 @@ The widget class hierarchy loosely resembles that of Java Swing. The main differ
2124
2225The library comprises three main packages:
2326
24- scala.swing
25- All widget classes and traits.
26-
27- scala.swing.event
28- The event hierarchy.
29-
30- scala.swing.test
31- A set of demos.
27+ - ` scala.swing ` : All widget classes and traits.
28+ - ` scala.swing.event ` : The event hierarchy.
29+ - ` scala.swing.test ` : A set of demos.
3230
3331
3432Notes:
3533
36- Visual appearance of combo boxes using the GTK LaF is broken on JDKs < 1.7b30.
37- This is a Java Swing problem.
34+ - Visual appearance of combo boxes using the GTK LaF is broken on JDKs < 1.7b30. This is a Java Swing problem.
0 commit comments