show menuitem when menu hovered javafx

Solutions on MaxInterview for show menuitem when menu hovered javafx by the best coders in the world

showing results for - "show menuitem when menu hovered javafx"
Brighton
24 Aug 2016
1HBox container = (HBox) menubar.lookup("HBox");
2		for(int i=0;i<container.getChildren().size();i++) {
3			Node parentNode = container.getChildren().get(i);
4			Menu menu = menubar.getMenus().get(i);
5			parentNode.setOnMouseMoved(e->{
6				menu.show();
7			});
8		}
similar questions
queries leading to this page
show menuitem when menu hovered javafx