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

Summary: MENU: Strange menu width in designer
Product: guibuilder Reporter: Jiri Vagner <jvagner>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: menu-width-in-designer.png

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.)