Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

show menuitem when menu hovered javafx

HBox container = (HBox) menubar.lookup("HBox");
		for(int i=0;i<container.getChildren().size();i++) {
			Node parentNode = container.getChildren().get(i);
			Menu menu = menubar.getMenus().get(i);
			parentNode.setOnMouseMoved(e->{
				menu.show();
			});
		}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #menuitem #menu #hovered #javafx
ADD COMMENT
Topic
Name
4+9 =