Gabriel95 / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

Assigning items to ContextMenu does nothing #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It is not possible to assign items to a ContextMenu using ContextMenu#items. 
For instance, following code complies fine, but the menu will have no items:

    val menuItemA = new MenuItem("MenuItemA")
    val menuItemB = new MenuItem("MenuItemB")
    val contexMenu = new ContextMenu()
    contexMenu.items +=(menuItemA, menuItemB)

Original issue reported on code.google.com by jpsacha on 1 Mar 2013 at 4:57

GoogleCodeExporter commented 8 years ago

Original comment by jpsacha on 1 Mar 2013 at 10:09