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.

Bug 40824 - Edit menu pane too narrow to display whole text
Summary: Edit menu pane too narrow to display whole text
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 41836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-08 07:42 UTC by pgriebel
Modified: 2008-12-22 22:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pgriebel 2004-03-08 07:42:09 UTC
We use specially labeled UndoableEdits (see also
issue #40823).

The result is that the label to be used for the
undo/redo action becoms quite large. The edit menu
pane is not wide enought to display the whole
label. The label overwrite the text describing the
shortcut.

But moving forward to another pulldown menu and
then back will redisplay the edit menu with the
right dimension.
Comment 1 Milos Kleint 2004-03-08 07:52:34 UTC
reassigning
Comment 2 Milos Kleint 2004-03-09 07:27:47 UTC
it works fine on my linux box, could be platform specific.
What JDK are you using?
Comment 3 pgriebel 2004-03-09 08:21:59 UTC
I tried it using 1.4.1_01_b01 and 1.4.2-b28
I did'nt try an older version (yet). Do you need more information?
Comment 4 Milos Kleint 2004-03-12 10:12:55 UTC
it happens on my XP as well.

TIm, are we using special UI classes for menus or we use the jdk defaults?
Comment 5 _ tboudreau 2004-03-12 11:23:05 UTC
AFAIK there's nothing funny with the UI classes, but it is the old strange menu classes in 
org.openide.awt (look in both openide/ and openide/loaders), and they have some 
workarounds for 1.3 positioning bugs, etc.

David Strupl contributed a line switch to turn some of that off - it might help.
Comment 6 Milos Kleint 2004-07-09 14:51:53 UTC
evaluation:
the problem is the lazy updating of the menu item texts in
org.openide.awt.Action.MenuBridge.updateState() which happens too late
- when the menu is added to the awt hierarchy. at that time everything
seem sto be layed out already..
that's why going to a neighbouring menu and back solves the problem.
Comment 7 Milos Kleint 2004-07-09 15:31:08 UTC
IMHO fixed by doing the update at an earlier stage. still lazy, but
not in JComponent.addNotify().
(JMenuPlus.java and Actions.java in org.openide.awt)
Comment 8 Marian Mirilovic 2004-08-12 16:25:13 UTC
*** Issue 41836 has been marked as a duplicate of this issue. ***
Comment 9 Zdenek Konecny 2005-07-12 15:43:48 UTC
Verified in NetBeans 4.2 Build 200507110943