Skip to content

Commit b3a46ad

Browse files
committed
update readme with examples
1 parent 8b1a028 commit b3a46ad

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scala-swing (unsupported) [<img src="https://api.travis-ci.org/scala/scala-swing.png?branch=java7"/>](https://travis-ci.org/scala/scala-swing?branch=java7)
1+
scala-swing (mostly-unsupported) [<img src="https://api.travis-ci.org/scala/scala-swing.png?branch=java7"/>](https://travis-ci.org/scala/scala-swing?branch=java7)
22
=========
33

44
This is now community maintained. If you're interested in helping then contact @adriaanm or @andy1138
@@ -26,7 +26,41 @@ The library comprises three main packages:
2626

2727
- `scala.swing`: All widget classes and traits.
2828
- `scala.swing.event`: The event hierarchy.
29-
- `scala.swing.test`: A set of demos.
29+
30+
31+
Examples
32+
---
33+
34+
A number of examples can be found in the `examples` project.
35+
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.
36+
37+
38+
```
39+
$ sbt examples/run
40+
41+
Multiple main classes detected, select one to run:
42+
43+
[1] scala.swing.examples.ButtonApp
44+
[2] scala.swing.examples.Dialogs
45+
[3] scala.swing.examples.ComboBoxes
46+
[4] scala.swing.examples.CelsiusConverter2
47+
[5] scala.swing.examples.ListViewDemo
48+
[6] scala.swing.examples.HelloWorld
49+
[7] scala.swing.examples.LabelTest
50+
[8] scala.swing.examples.PopupDemo
51+
[9] scala.swing.examples.ColorChooserDemo
52+
[10] scala.swing.examples.LinePainting
53+
[11] scala.swing.examples.GridBagDemo
54+
[12] scala.swing.examples.UIDemo
55+
[13] scala.swing.examples.TableSelection
56+
[14] scala.swing.examples.CelsiusConverter
57+
[15] scala.swing.examples.SwingApp
58+
[16] scala.swing.examples.CountButton
59+
60+
Enter number:
61+
```
62+
63+
3064

3165

3266
Versions

0 commit comments

Comments
 (0)