List of usage examples for javafx.scene.control Menu Menu
public Menu()
From source file:com.bekwam.resignator.ResignatorAppMainViewControllerTest.java
@Before public void init() { resignatorAppMainViewController = new ResignatorAppMainViewController(); Menu mRecentProfiles = new Menu(); List<MenuItem> rpItems = new ArrayList<>(); rpItems.add(new MenuItem(noneMenuItemText)); mRecentProfiles.getItems().clear();// ww w . j ava 2 s . com mRecentProfiles.getItems().addAll(rpItems); ActiveConfiguration activeConfiguration = new ActiveConfiguration(); resignatorAppMainViewController.mRecentProfiles = mRecentProfiles; resignatorAppMainViewController.activeConfiguration = activeConfiguration; }