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 121868 - Strange menu background color on Motif preview
Summary: Strange menu background color on Motif preview
Status: VERIFIED FIXED
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-11-14 10:10 UTC by Jiri Vagner
Modified: 2008-03-20 09:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
strange-menu-background.jpg (42.25 KB, image/jpeg)
2007-11-14 10:11 UTC, Jiri Vagner
Details
strange-menu-background-2.jpg (5.79 KB, image/jpeg)
2007-11-14 10:15 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-11-14 10:10:44 UTC
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)
Comment 1 Jiri Vagner 2007-11-14 10:11:31 UTC
Created attachment 52955 [details]
strange-menu-background.jpg
Comment 2 Jiri Vagner 2007-11-14 10:15:10 UTC
Created attachment 52956 [details]
strange-menu-background-2.jpg
Comment 3 Jan Stola 2007-11-28 13:50:13 UTC
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.
Comment 4 Jiri Vagner 2008-03-20 09:29:36 UTC
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)