Hi! I am facing another issue, that's LinkUtil.setLink() can't be set to Javafx MenuItem?
As LinkUtil.setLink() only accepts Nodes. What is the currently solution?
Sample code for testing:
javafx.scene.control.MenuItem menuItemSubCategory = new MenuItem("Category");
LinkUtil.setLink(menuItemSubCategory, "/?buizCategory=");
This error is showing:
D:\NetBeansProjects\MyAPP\src\main\java\com\myapp\module\ImageSlider.java:447: error: incompatible types: MenuItem cannot be converted to Node
LinkUtil.setLink(menuItemSubCategory, "/?buizCategory="+ menuItemSubCategory.getText().replaceAll(" ", "%20"));
Yes, that's a quite an annoying topic. You don't get the Node of the MenuItem by default.
I have to look into it, but I'm unsure whether it's solvable.
Hi! I am facing another issue, that's
LinkUtil.setLink()
can't be set to Javafx MenuItem? AsLinkUtil.setLink()
only accepts Nodes. What is the currently solution?Sample code for testing:
This error is showing:
Or
Then this error is showing!