Skip to main content

Geertjan Wielenga: Dynamically Changing the Display Names of Menus and Popups

Dynamically Changing the Display Names of Menus and Popups: Very interesting thing and handy to know when needed is the fact that "menuText" and "popupText" (from org.openide.awt.ActionRegistration) can be changed dynamically, via "putValue" as shown below for "popupText". The Action class, in this case, needs to be eager, hence you won't receive the object of interest via the constructor, but...

Community: