1: //..+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
2:
3: /*'****************************************'demo: scala
4: cd /Users/sketch/book/java_useBetter_1/berry/colorChart/scala/
5:
6: scalac -d bin {Tips,TreeView,colorList,colorTabbedPane,colorTable}.scala
7: scala -cp bin berry.colorChart.scala.Tips; date
8: $
9: ----------------------------------------
10: version: berry.colorChart.scala.Tips$: #1.0.06
11: berry.colorChart.scala.ColorList$: #1.0.09
12: berry.colorChart.scala.ColorTabbedPane$: #1.0.06
13: berry.colorChart.scala.ColorTable$: #1.0.15a
14: berry.colorChart.scala.TreeView$: #1.0.03
15: ----------------------------------------
16: $
17: '****************************************'*/
18: package berry.colorChart.scala
19:
20: // ----------------------------------------
21: import swing._
22: import berry.colorChart.scala._
23:
24: object Tips extends SimpleSwingApplication {
25: val version = Tips
26: .getClass.getName+": #1.0.06"
27:
28: // ----------------------------------------
29: println("-"*40)
30: println("version: %s" format version)
31: println(ColorList.version)
32: println(ColorTabbedPane.version)
33: println(ColorTable.version)
34: println(TreeView.version)
35: println("-"*40)
36:
37: // ----------------------------------------
38: def top = new MainFrame {
39: /*'****************************************'
40: title = "Color: ListView"
41: contents = new ColorList
42: title = "Color: TabbedPane"
43: contents = new ColorTabbedPane
44: '****************************************'*/
45: title = "Color: Table"
46: contents = new ColorTable
47:
48: peer.setLocationRelativeTo(null)
49: }
50: }
51:
52: // ========================================