Nimbus - getting NPE

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Nimbus - getting NPE

Postby tcorbin » Tue Jun 19, 2007 4:12 pm

Do you know if anyone has been using Nimbus with JIDE?

I've been trying and I don't know if Nimbus has a problem - entirely possible seeing it's early in it's lifecycle - or what.

Code: Select all
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookAndFeelConfigurer' defined in class path resource [com/coned/config/startup/clientStartup.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
        at com.jidesoft.plaf.vsnet.c.a(Unknown Source)
        at com.jidesoft.plaf.vsnet.c.h(Unknown Source)
        at com.jidesoft.plaf.vsnet.VsnetMetalUtils.initComponentDefaults(Unknown Source)
        at com.jidesoft.plaf.LookAndFeelFactory.a(Unknown Source)
        at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
        at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
        at com.coned.ui.laf.JideLookAndFeelConfigurer.setUiProperties(JideLookAndFeelConfigurer.java:1
tcorbin
 
Posts: 119
Joined: Thu Jan 20, 2005 8:25 am
Location: Virginia

Postby JIDE Support » Tue Jun 19, 2007 4:19 pm

We have a project to make Nimbus working and looks good with JIDE components. It's pretty much done but we haven't released yet as Nimbus is not out. I'll see if we can release EA version so that people can try it out.

Image
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Has there been any progress on supporting nimbus?

Postby tcorbin » Sat Sep 22, 2007 7:12 am

JIDE Support wrote:We have a project to make Nimbus working and looks good with JIDE components. It's pretty much done but we haven't released yet as Nimbus is not out. I'll see if we can release EA version so that people can try it out.



Thanks. That image sure does look nice.
tcorbin
 
Posts: 119
Joined: Thu Jan 20, 2005 8:25 am
Location: Virginia

Re: Has there been any progress on supporting nimbus?

Postby tcorbin » Tue Apr 29, 2008 8:40 am

tcorbin wrote:
JIDE Support wrote:We have a project to make Nimbus working and looks good with JIDE components. It's pretty much done but we haven't released yet as Nimbus is not out. I'll see if we can release EA version so that people can try it out.



Thanks. That image sure does look nice.


Has there been any progress on numbus support?

I just tried jdk 6_10 and I'm getting a NullPointerException still. I think it's a different null pointer exception, but still.
tcorbin
 
Posts: 119
Joined: Thu Jan 20, 2005 8:25 am
Location: Virginia

Postby JIDE Support » Tue Apr 29, 2008 10:48 am

The API for Nimbus is still changing which makes it impossible to do any release on it. I just noted that the tabbed pane is not working with the latest JDKu10 release.

I think if you want to avoid any NPE, try with this NimbusInitializer. Do it after you set the L&F but before doing installJideExtension.

Code: Select all
new NimbusWindowsUtils.NimbusInitializer().initialize(UIManager.getLookAndFeelDefaults());


Code: Select all
    public static class NimbusInitializer implements LookAndFeelFactory.UIDefaultsInitializer {
        public void initialize(UIDefaults defaults) {
            Object marginBorder = new SwingLazyValue(
                    "javax.swing.plaf.basic.BasicBorders$MarginBorder");

            Object[] uiDefaults = {
                    "textHighlight", new ColorUIResource(197, 218, 233),
                    "controlText", new ColorUIResource(Color.BLACK),
                    "activeCaptionText", new ColorUIResource(Color.BLACK),
                    "MenuItem.acceleratorFont", new FontUIResource("Arial", Font.PLAIN, 12),
                    "ComboBox.background", new ColorUIResource(Color.WHITE),
                    "ComboBox.disabledForeground", new ColorUIResource(Color.DARK_GRAY),
                    "ComboBox.disabledBackground", new ColorUIResource(Color.GRAY),

                    "activeCaption", new ColorUIResource(197, 218, 233),
                    "inactiveCaption", new ColorUIResource(Color.DARK_GRAY),
                    "control", new ColorUIResource(220, 223, 228),
                    "controlLtHighlight", new ColorUIResource(Color.WHITE),
                    "controlHighlight", new ColorUIResource(Color.LIGHT_GRAY),
                    "controlShadow", new ColorUIResource(133, 137, 144),
                    "controlDkShadow", new ColorUIResource(Color.BLACK),
                    "MenuItem.background", new ColorUIResource(237, 239, 242),
                    "SplitPane.background", new ColorUIResource(220, 223, 228),
                    "Tree.hash", new ColorUIResource(Color.GRAY),

                    "TextField.foreground", new ColorUIResource(Color.BLACK),
                    "TextField.inactiveForeground", new ColorUIResource(Color.BLACK),
                    "TextField.selectionForeground", new ColorUIResource(Color.WHITE),
                    "TextField.selectionBackground", new ColorUIResource(197, 218, 233),
                    "Table.gridColor", new ColorUIResource(Color.BLACK),
                    "TextField.background", new ColorUIResource(Color.WHITE),

                    "Menu.border", marginBorder,
                    "MenuItem.border", marginBorder,
                    "CheckBoxMenuItem.border", marginBorder,
                    "RadioButtonMenuItem.border", marginBorder,
            };
            LookAndFeelFactory.putDefaults(defaults, uiDefaults);
        }
    }


Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to Product Suggestions

Who is online

Users browsing this forum: Google [Bot] and 12 guests