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 114019 - MENU: Strange menu width in designer
Summary: MENU: Strange menu width in designer
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 15:27 UTC by Jiri Vagner
Modified: 2009-05-25 20:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
menu-width-in-designer.png (25.43 KB, image/png)
2007-08-28 15:28 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-08-28 15:27:28 UTC
Menu item component after setting shortcut is much bigger in design time than in real life (preview or executed form).
Check the screenshot.

Steps to reproduce:
 - create jframe form
 - add menu bar
 - add menu item into File menu and change caption to "Open" and set CTRL+SHIFT+ALT+something
 - check the width of menu
 - now add sedonf menu item into File menu and change caption to "Save"
 - check the width of menu again

Product Version: NetBeans IDE Dev (Build 070828)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)
Comment 1 Jiri Vagner 2007-08-28 15:28:34 UTC
Created attachment 47627 [details]
menu-width-in-designer.png
Comment 2 Joshua Marinacci 2007-09-24 19:49:24 UTC
We can try to fix this with better hard coded adjustments, but there is no way to do it properly because the menu item
api does not expose the size of the shortcut, or even the exact text used to render the shortcut (since it may use
either the word for a modifier or a small symbol.)