diff options
Diffstat (limited to 'src/graphyx/gui/PopupMenu.scala')
-rw-r--r-- | src/graphyx/gui/PopupMenu.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/graphyx/gui/PopupMenu.scala b/src/graphyx/gui/PopupMenu.scala new file mode 100644 index 0000000..9679018 --- /dev/null +++ b/src/graphyx/gui/PopupMenu.scala @@ -0,0 +1,20 @@ +/* + * Graphyx + * copyright (c) 2009 Jakob Odersky + * made available under the MIT License +*/ + +package graphyx.gui + +import scala.swing._ +import scala.swing.event._ +import javax.swing._ + +class PopupMenu extends Component +{ + override lazy val peer : JPopupMenu = new JPopupMenu + + def add(item: MenuItem) : Unit = { peer.add(item.peer) } + def setVisible(visible:Boolean) : Unit = { peer.setVisible(visible) } + /* Create any other peer methods here */ +}
\ No newline at end of file |