title: Is it possible to scroll a JavaFX MenuBar
body: <p>I would like to add a javafx.scene.control.MenuBar into an AnchorPane.
  The number of menu entries is flexible. The user could add one or more entries into the MenuBar.
  If I only use a few menu entries in the MenuBar, then there is enough horizontal place.    </p>
  
  <pre><code>MenuBar menuBar = new MenuBar();
  Menu menuFile = new Menu("File");
  Menu menuEdit = new Menu("Edit");
  Menu menuView = new Menu("View");
  menuBar.getMenus().addAll(menuFile, menuEdit, menuView);
  </code></pre>
  
  <p>But in case of more than a few entries and some long items, there is not enough place.
  This is not the normal case, but some users would like to add more menu items. The maximum number of menu items will be limited to ten entries.</p>
  
  <pre><code>MenuBar menuBar = new MenuBar();
  Menu menu1 = new Menu("Long first menu");
  Menu menu2 = new Menu("My second long entry");
  Menu menu3 = new Menu("another long entry");
  Menu menu4 = new Menu("Long menu 4");
  Menu menu5 = new Menu("My fifth long entry");
  Menu menu6 = new Menu("another long long entry");
  
  menuBar.getMenus().addAll(menu1, menu2, menu3, menu4, menu5, menu6);
  </code></pre>
  
  <p>My Dialog must be not resizable. and all menus have to be in one line in the MenuBar.
  This is a GUI design decision.</p>
  
  <p>I would like to have a solution with a scrollable MenuBar.
  If this solution is absolutely not possible the next solution could be to reduce the number of the shown characters of all menus.
  e.g.: |Long fir...|My second...|another...| ...
  but I prefer the first solution.</p>