/* * 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 */ }