United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6612359 Nimbus L&F: NetBeans 6.0 Beta 1 causes exceptions with 1.6.0_05-ea-b04
JDK-6612359 : Nimbus L&F: NetBeans 6.0 Beta 1 causes exceptions with 1.6.0_05-ea-b04

Details
Type:
Bug
Submit Date:
2007-10-03
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2007-12-17
Component:
client-libs
OS:
linux,windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b09)

Related Reports
Duplicate:
Duplicate:
Relates:

Sub Tasks

Description
I tried NetBeans with Nimbus of 1.6.0_05-ea-b04, but some exceptions happen and editor can not be opened. Is this known issue? I attached the full log file of NetBeans.

NetBeans 6.0 Beta1 (200709141330)
1.6.0_05-ea-b04
Windows XP version 5.1 running on x86 (Japanese)

java.lang.NullPointerException^M
        at org.netbeans.modules.editor.settings.storage.CompositeFCS.<clinit>(CompositeFCS.java:52)^M
Caused: java.lang.ExceptionInInitializerError^M
        at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.initialize(SettingsProvider.java:164)^M
        at org.openide.util.lookup.AbstractLookup.enterStorage(AbstractLookup.java:138)^M
        at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:351)^M
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:343)^M
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:192)^M

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.editor.settings.storage.CompositeFCS^M
        at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.initialize(SettingsProvider.java:164)^M
        at org.openide.util.lookup.AbstractLookup.enterStorage(AbstractLookup.java:138)^M
        at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:351)^M
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:343)^M
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:192)^M
        at org.netbeans.modules.editor.impl.KitsTracker.reload(KitsTracker.java:201)^M

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.editor.settings.storage.CompositeFCS^M
        at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.initialize(SettingsProvider.java:164)^M
        at org.openide.util.lookup.AbstractLookup.enterStorage(AbstractLookup.java:138)^M
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:406)^M
        at org.openide.util.lookup.ProxyLookup$R.initResults(ProxyLookup.java:305)^M
        at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:554)^M
        at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:427)^M
        at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:400)^M

                                    

Comments
EVALUATION

Looking in NB source files, it looks like they are expecting TextField.font to be an entry in UIDefaults.

There have been many issues of missing UiDefaults keys, although these keys are not required by any spec they are supported by Metal, Windows and many other common LAFs. I have added a comprehensive set to cover as many of these backwards compatibility issues. They are based on the reference page  http://java.sun.com/products/jfc/tsc/articles/lookandfeel_reference/index.html

These include:

XXX.background
XXX.foreground
XXX.font
XXX.disabledText
XXX.disabled

properties for all basic components and this set of standard colors:

desktop: Color of the desktop background
activeCaption: Color for captions (title bars) when they are active.
activeCaptionText: Text color for text in captions (title bars).
activeCaptionBorder: Border color for caption (title bar) window borders.
inactiveCaption: Color for captions (title bars) when not active.
inactiveCaptionText: Text color for text in inactive captions (title bars).
inactiveCaptionBorder: Border color for inactive caption (title bar) window borders.
window: Default color for the interior of windows
windowBorder: Color of the window's border
windowText: Color of the window's title text
menu: Background color for menus
menuText: Text color for menus
text: Text background color
textText: Text foreground color
textHighlight: Text background color when selected
textHighlightText: Text color when selected
textInactiveText: Text color when disabled
control: Default color for controls (buttons, sliders, etc)
controlText: Default color for text in controls
controlHighlight: Specular highlight (opposite of the shadow)
controlLtHighlight: Highlight color for controls
controlShadow: Shadow color for controls
controlDkShadow: Dark shadow color for controls
scrollbar: Scrollbar background (usually the "track")
info: information color (sometimes used for tooltips)
infoText: information text color (sometimes used for tooltips)
                                     
2007-12-07



Hardware and Software, Engineered to Work Together