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 40034 - The popup menu items in editor are not horizontally aligned
Summary: The popup menu items in editor are not horizontally aligned
Status: VERIFIED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 43433 (view as bug list)
Depends on:
Blocks: 49327
  Show dependency tree
 
Reported: 2004-02-12 18:10 UTC by iformanek
Modified: 2008-12-22 15:51 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (5.43 KB, image/png)
2004-02-12 18:11 UTC, iformanek
Details
Bug fix (687 bytes, patch)
2004-09-27 16:00 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iformanek 2004-02-12 18:10:43 UTC
Win XP, Classic L&F, JDK 1.4.2.
Popup menu on XML editor.

See attached screenshot
Comment 1 iformanek 2004-02-12 18:11:22 UTC
Created attachment 13397 [details]
screenshot
Comment 2 Miloslav Metelka 2004-02-16 13:18:34 UTC
It appears that the Tools menu item and others have some extra
indentation space. We were able to reproduce on W2K as well but not on
Linux RH9. The problem seems to be global - e.g. the popup menu on
explorer has the same problem.
Reassigning to ui for further evaluation.
Comment 3 Jiri Mzourek 2004-02-17 11:41:31 UTC
Mila, please can you let me know what kind of evaluation from HIE is
expected in this case? 

I think this is a pure implementation problem and this issue should be
reassigned to appropriate developer. Who is responsible for this menu?
Someone in Core? 
Comment 4 Miloslav Metelka 2004-02-17 14:34:56 UTC
I wanted to be sure that this is not caused by any ui-related
suggestion from ui team that would be just partially implemented.
From your response it looks like it's a pure regression. Reassigning
to core/ui.
Comment 5 David Simonek 2004-02-24 16:19:53 UTC
Well, IMO this is not the bug, this is feature of Windows-like LF.
Swing's win LF is trying to emulate behaviour of native LF. Try to run
several native win apps and try to run SwingSet - you'll see space and
alignment  everywhere.
Comment 6 iformanek 2004-02-24 16:53:53 UTC
I'll politely disagree here. This is a clear bug for the look& feel 
adherance to what is the operating system standard.
Comment 7 David Simonek 2004-02-27 14:52:13 UTC
Please see my evaluation in 39531. Extra menu space *is* operating
system standard at least on my XP machine.
Comment 8 iformanek 2004-02-27 15:29:22 UTC
Please try to reread the original bugreport and check the attached
image again. The bugreport is not about how wide the gap is, but that
it is by several pixels different for different menu items, making
them nonaligned horizontally (that's why I drew the vertical black
line in the image)
Comment 9 David Simonek 2004-02-27 15:57:11 UTC
Ahha. Yes, now I even see first screenshot :-) OK, I've got it,
finally. I'm sorry.
Comment 10 Petr Hrebejk 2004-05-18 13:17:13 UTC
*** Issue 43433 has been marked as a duplicate of this issue. ***
Comment 11 Stanislav Aubrecht 2004-09-27 16:00:59 UTC
Created attachment 17892 [details]
Bug fix
Comment 12 Stanislav Aubrecht 2004-09-27 16:01:26 UTC
dafe, review my bugfix pls
Comment 13 David Simonek 2004-09-29 12:56:13 UTC
OK, reviewed, go ahead. I assume that you tested on both Metal and Win LF.
Btw did you find the reason why code shown in your patch was written?
Comment 14 Stanislav Aubrecht 2004-09-29 13:35:13 UTC
fixed in org.openide.awt.Actions

the guilty lines of code have already been in the initial version. 
Comment 15 cezariusz 2004-10-05 16:22:48 UTC
It's almost done, but disabled items are now shifted 1 pixel to the 
left. Windows XP, default L&F, JDK 1.5.0.
Comment 16 Stanislav Aubrecht 2004-10-11 08:29:58 UTC
this a bug in jdk. you can verify this by running the swingset demo in
windows l&f.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6176159
Comment 17 Marian Mirilovic 2005-07-12 10:08:30 UTC
closed