summaryrefslogblamecommitdiff
path: root/src/graphyx/gui/PopupMenu.scala
blob: 9679018b41466d436684a4379632d89b474ffc30 (plain) (tree)



















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