Example usage for javafx.scene.control Menu Menu

List of usage examples for javafx.scene.control Menu Menu

Introduction

In this page you can find the example usage for javafx.scene.control Menu Menu.

Prototype

public Menu() 

Source Link

Document

Constructs a Menu with an empty string for its display text.

Usage

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;
}