blob: 9679018b41466d436684a4379632d89b474ffc30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */
}
|