I am trying to customize the context menue of a component in vision and I would like to grey out one item in the context menu:
![context-menu](https://global.discourse-cdn.com/business4/uploads/inductiveautomation/original/3X/e/b/eb15d68aa8a3a9268f7231f016fcbcf79753f8b2.png)
In the context menue that is shown, when i right-click on the root container some items are greyed out. That is what I am trying to do.
Thanks for any hint on how to achive this.
You'll need to create a custom java menu instead of using IA's helper function. This topic will get you started:
The key to your case is that each JMenuItem has a .setEnabled() method. (Follow the link to the javadoc.)
Thanks! I will look into that.