This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||Dynamically changing names of menu actions|
|Product:||platform||Reporter:||Petr Hrebejk <phrebejk>|
|Component:||Window System||Assignee:||Milos Kleint <mkleint>|
|Issue Type:||DEFECT||Exception Reporter:|
|Bug Depends on:|
Description Petr Hrebejk 2004-04-08 12:15:57 UTC
Jesse's comment from email: BTW I've noticed that often the first time you select some menu item in stavbicka whose name is computed (to include a project or file name), it will be rendered too small, so that the menu text is truncated and the accelerator hint overwrites part of it. If you move away and go back to the item it looks fine.Ultimately may be solved best by #35827 (along with God knows what else). In the meantime it looks like some bug in PlaceHolderAction - maybe enable() needs to fire a change in Action.NAME? I know how to fix this for submenus - cf. o.n.m.javadoc.search.IndexOverviewAction - but for menu items in the first-level menus, I'm not sure. Dynamic changes to menu items are not all that well supported by the NB APIs, though it seems to work just fine in Swing so long as you make any changes *before* returning something from JMenu.getPopupMenu (so that all the size calculations etc. get the correct values).
Comment 1 Jesse Glick 2004-04-08 15:09:32 UTC
Tim might have something to say about this w.r.t. Mac OS X.
Comment 2 Petr Hrebejk 2004-05-03 13:20:34 UTC
Reassigning to winsys. The actions are now javax.swing.Actions which fire the properties correctly. Menus should react automaticaly IMHO.
Comment 3 Petr Hrebejk 2004-05-03 13:21:04 UTC
Comment 4 Jesse Glick 2004-05-03 17:44:55 UTC
Not window system as such.
Comment 5 Petr Hrebejk 2004-06-17 17:33:23 UTC
*** Issue 43690 has been marked as a duplicate of this issue. ***
Comment 6 Milos Kleint 2004-06-28 08:25:05 UTC
*** Issue 45590 has been marked as a duplicate of this issue. ***
Comment 7 Milos Kleint 2004-07-08 15:08:53 UTC
Comment 8 Milos Kleint 2004-07-09 15:33:06 UTC
actually this seems to be a duplicate of issue #40824. I just fixed it.
Comment 9 Marian Mirilovic 2004-08-12 16:24:52 UTC
Comment 10 Marian Mirilovic 2004-08-12 16:25:13 UTC
*** This issue has been marked as a duplicate of 40824 ***
Comment 11 Marian Mirilovic 2005-07-12 10:16:53 UTC