From 9d20024aa35cd7f923ebfc1ed9a2ffbf2731da70 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Thu, 5 Nov 2009 21:02:40 +0000 Subject: Initial import. --- src/graphyx/gui/ShapeInfoPanel.scala | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/graphyx/gui/ShapeInfoPanel.scala (limited to 'src/graphyx/gui/ShapeInfoPanel.scala') diff --git a/src/graphyx/gui/ShapeInfoPanel.scala b/src/graphyx/gui/ShapeInfoPanel.scala new file mode 100644 index 0000000..d94c0bd --- /dev/null +++ b/src/graphyx/gui/ShapeInfoPanel.scala @@ -0,0 +1,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 + +} -- cgit v1.2.3