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.
Created attachment 131735 [details] Shows how lightweight / heavyweight mixing worked in NetBeans 7.2 This seems to be a regression, since the mixing works without problems in NetBeans 7.2. Both version with the following java version: java version "1.7.0_15" OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.04) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) Steps to reproduce the bug: Clone the git repository at https://github.com/nilshoffmann/netbeans-jogl2.git. This contains a NetBeans platform project defining two TopComponents. They are registered under Window->Jogl2 Demo and Window->Jzy3DDemo, respectively. If any of those is opened, selecting any of the longer menus in the menubar, like "Tools" will show the problem.
Created attachment 131736 [details] Shows how lightweight / heavyweight mixing fails in NetBeans 7.3, menu is behind the AWT canvas
The attached screenshots show the undesired behaviour in comparison between NetBeans 7.2 and 7.3 when the NewtCanvasAWT is embedded in a TopComponent and a menu is selected. The project was properly cleaned and rebuilt for each invocation and the target platform was manually set/reset beforehand to 7.2 and 7.3 respectively.
Please reopen if the problem is reproducible with the latest update of Oracle JDK, thanks.
The problem persists, even with the latest Oracle VM. The symptoms are exactly the same. This is from the application startup log to prove usage of the oracle VM. System Info: Product Version = NetBeans IDE 7.3 (Build 201302132200) (#93e87decaddf) Operating System = Linux version 3.2.0-38-generic running on amd64 Java; VM; Vendor = 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.7.0_15-b03 Java Home = /usr/lib/jvm/java-7-oracle/jre System Locale; Encoding = de_DE (nb); UTF-8
I found the root cause and a workaround for the issue: The "regression" relates to the addition of a setting in /etc/netbeans.conf: If -J-Dsun.awt.disableMixing=false then lightweight/heavyweight mixing works. If -J-Dsun.awt.disableMixing=true which is the default in 7.3, then lightweight/heavyweight mixing is obviously disabled. However, it would be nice to have this documented somewhere, since it may not be obvious to other developers where this is set or where it comes from.
I updated the developer FAQ wiki page and added a new page on the issue: http://wiki.netbeans.org/DevFaqMixingLightweightHeavyweight
This is a regression from issue #218346 Ondro, any particular reason why we have -J-Dsun.awt.disableMixing=true in netbeans.conf?
(In reply to comment #7) > This is a regression from issue #218346 > > Ondro, any particular reason why we have -J-Dsun.awt.disableMixing=true in > netbeans.conf? I am sorry, Stando, i was just solving a stupidly merged file with (now as it seems) also a stupid merge. Please remove the setting if it's not supposed to be there. Thanks.
core-main fd13c633d1d7
Integrated into 'main-golden', will be available in build *201303012300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fd13c633d1d7 User: S. Aubrecht <saubrecht@netbeans.org> Log: #226537 - there's no reason to disable heavy/light-weight mixing
Unfortunately, this change cannot be delivered via autoupdate mechanism - this wil be delivered by installation - targeted to 7.3.1 AKA 73patch2.
please backport to 7.3.1.
backported to release73 branch as 8270b34a236e
Integrated into 'releases', will be available in build *201305062200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/8270b34a236e User: S. Aubrecht <saubrecht@netbeans.org> Log: #226537 - backport of fd13c633d1d7
Verified in Netbeans 7.3.1 201305092200