blob: d94c0bde96d4087a0584c6d7e82354569588fa57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Graphyx
* copyright (c) 2009 Jakob Odersky
* made available under the MIT License
*/
package graphyx.gui
import graphyx.graphics._
import sims.geometry._
import sims.dynamics._
import scala.swing._
import scala.swing.event._
import GridBagPanel._
class ShapeInfoPanel(container: Container) extends GridPanel(2,2) {
this.border = Swing.EmptyBorder(3,3,3,3)
this.hGap = 3
this.vGap = 3
val lblBody = new Label("Body")
val lblValBody = new Label("0")
val lblShape = new Label("Shape")
val lblValShape = new Label("0")
val components = List(
lblBody, lblValBody,
lblShape, lblValShape
)
contents ++= components
}
|