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.
Product Version = NetBeans IDE Dev (Build 20130523-d103dd8c8e09) Operating System = Linux version 3.1.10-1.19-desktop running on amd64 Java; VM; Vendor = 1.7.0_21 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01 1) Open a form file in the Design mode 2) Select a component 3) Edit its foreground color and select Label.disabledForeground from the Swing palette tab and click on OK 4) The generated code is "jLabel2.setForeground(new java.awt.Color(153, 153, 153))" instead of expected "jLabel2.setBackground(UIManager.getDefault().getColor("Label.disabledForeground"))"
Looks like this was caused by a change in JDK 1.7: ColorChooserPanel.propertyChange causes that the SuperColor object set to the selection model is copied and set again which removes the additional information stored in SuperColor. Workaround applied: http://hg.netbeans.org/jet-main/rev/472e0ca83d59
Integrated into 'main-golden', will be available in build *201306050626* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/472e0ca83d59 User: Tomas Pavek <tpavek@netbeans.org> Log: #230371: workarounding re-entrant call from ColorChooserPanel.propertyChange (JDK 1.7 change) causing loss of the set SuperColor value
Transplanted to jdev_aspen as c864b0391999.