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.
Something is wrong with background color of menu component while using preview on Motif look&feel. See the screenshot. Steps to reproduce: - create new jframe form - add menu bar - invoke preview of form using Motif l&f Product Version: NetBeans IDE 6.0 RC1 (Build 200711131200) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Created attachment 52955 [details] strange-menu-background.jpg
Created attachment 52956 [details] strange-menu-background-2.jpg
Fixed the problem from the first attachment - previewFrame.pack() was not called with preview UI defaults. Modified files: /cvs/form/src/org/netbeans/modules/form/FormDesigner.java new revision: 1.228; previous revision: 1.227 /cvs/form/src/org/netbeans/modules/form/FormLAF.java new revision: 1.31; previous revision: 1.30 /cvs/form/src/org/netbeans/modules/form/actions/TestAction.java new revision: 1.30; previous revision: 1.29 We will not fix the problem in the second attachment. The backround of the menu is updated when the menu is made visible. We would have to identify the right moment when this update occurs and replace current(=IDE) UI defaults with the preview UI defaults. It is not worth the effort to do that - preview will never be 100% accurate due to static nature of UIDefaults.
Verified Product Version: NetBeans IDE Dev (Build 200803200007) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)