MENUS: Top-Level Menu - some toolbar buttons showing text
This issue is related to the top-level menu items - when kepler menus are
enabled, the last 7 toolbar buttons (port/relation buttons) display text in
addition to their icons, and thus become much too large. The remaining buttons
don't do this, and it only happens when kepler menus are enabled. Something to
do with setting or not setting the Action.NAME property, or the LARGE_ICON prop,
or something similar?
NOTE that these 7 all have Actions in ptii, and all appear on menus in ptii.
The zoom toolbar buttons also have Actions and also appear on menus in ptii, but
do not suffer from this same text problem. Maybe compare the 2 types and see
what is different...
#1 Updated by Matthew Brooke almost 13 years ago
This was happening because we were setting the Action.NAME, which, in turn,
prompted the ptii code to show the name on the toolbar.
Currently commented out the code that changes Action.NAME, since this was also
the cause of bug #2341.
It would be nice if we could fix the toolbar buttons and go back to setting
the Action.NAME, since this is the preferred way of doing things nowadays;
however, if not, we can just refrain from using Action.NAME and use JMenuItem's
setText() method instead. reducing priority