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 91352 - FormLAF removes keys in UIDefaults
Summary: FormLAF removes keys in UIDefaults
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: REGRESSION
Depends on:
Blocks: 90728
  Show dependency tree
 
Reported: 2006-12-20 16:29 UTC by Jiri Rechtacek
Modified: 2007-08-01 15:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2006-12-20 16:29:15 UTC
[NetBeans IDE Dev (Build 061220)]
FormLAF removed keys to standard properties in UIDefaults like
TextField.background, ScrollBar.darkShadow, etc.

How to reproduce:
1. start IDE with fresh userdir
2. Open Options Dialog|Advance Options and select some node w/ color property,
open Swing Palette and check available colors
3. create a new one Form, left the newone form open
4. Restartselect some color property and open ColorEditor. Compare Swing Palette
with Color Palette, now the Swing Palette contains a few NB specific properties.
Comment 1 Jiri Rechtacek 2006-12-20 16:31:17 UTC
Ad 4. Restart IDE
5. Select some color property and open ColorEditor. Compare Swing Palette
with Color Palette, now the Swing Palette contains a few NB specific properties.

This issue makes problem also with storing colors from palette in .form file,
see issue 90728.
Comment 2 Tomas Pavek 2007-01-11 17:56:12 UTC
We need to fix this for 6.0.
Comment 3 Jan Stola 2007-08-01 15:43:18 UTC
We didn't remove the mentioned keys from UIDefaults. The problem was that ColorEditor used keys() method of UIDefaults 
to iterate through keys in UIDefaults, but our delegating UIDefaults didn't have this method implemented correctly. It 
has been fixed.

Modified file:
/cvs/form/src/org/netbeans/modules/form/FormLAF.java
new revision: 1.24; previous revision: 1.23