Skip to content

Commit 4cf7f42

Browse files
committed
fixes #88
1 parent 29d7685 commit 4cf7f42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/scala/scala/swing/PopupMenu.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ class PopupMenu extends Component with SequentialContainer.Wrapper with Publishe
5959
def show(invoker: Component, x: Int, y: Int): Unit = peer.show(invoker.peer, x, y)
6060

6161
def margin: Insets = peer.getMargin
62+
6263
def label: String = peer.getLabel
6364
def label_=(s: String): Unit = peer.setLabel(s)
65+
66+
/** Lays out the popup menu so that it uses the minimum space
67+
* needed to display its contents.
68+
*/
69+
def pack(): Unit = peer.pack()
6470
}
6571

0 commit comments

Comments
 (0)