You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2024. It is now read-only.
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
This error is showing:
Or
Then this error is showing!
The text was updated successfully, but these errors were encountered: