mdarifmustafa / xswingx

Automatically exported from code.google.com/p/xswingx
0 stars 1 forks source link

NullPointerExeption with Substance Look and Feel? #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. JXSearchField sf = new JXSearchField();
   sf.setLayoutStyle(LayoutStyle.VISTA);
2.
3.

What is the expected output? What do you see instead?
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at
org.jdesktop.xswingx.JXSearchField.customSetUIProperty(JXSearchField.java:748)
        at
org.jdesktop.xswingx.JXSearchField.customSetUIProperty(JXSearchField.java:726)
        at
org.jdesktop.xswingx.plaf.SearchFieldUI.installDefaults(SearchFieldUI.java:211)
        at
org.jdesktop.xswingx.plaf.SearchFieldUI.installUI(SearchFieldUI.java:72)
        at javax.swing.JComponent.setUI(JComponent.java:673)
        at javax.swing.text.JTextComponent.setUI(JTextComponent.java:322)
        at
org.jdesktop.xswingx.plaf.TextUIWrapper.replaceUIIfNeeded(TextUIWrapper.java:70)
        at
org.jdesktop.xswingx.plaf.TextUIWrapper$DefaultWrapper.replaceUIIfNeeded(TextUIW
rapper.java:167)
        at
org.jdesktop.xswingx.plaf.TextUIWrapper.install(TextUIWrapper.java:51)
        at
org.jdesktop.xswingx.JXSearchField.setUseNativeSearchFieldIfPossible(JXSearchFie
ld.java:516)
        at org.jdesktop.xswingx.JXSearchField.<init>(JXSearchField.java:173)
        at org.jdesktop.xswingx.JXSearchField.<init>(JXSearchField.java:161)

What version of the product are you using? On what operating system?
Netbeans 6.5, Substance Look and Feel 5.1, JDK6, SwingX, Win XP SP2

Please provide any additional information below.
I'm using very simple but with Substance laf uncompatible.

Original issue reported on code.google.com by denizkiy...@gmail.com on 11 Mar 2009 at 12:33

GoogleCodeExporter commented 8 years ago
check bug 8. It is the same, and in the comments is the solution (you will need 
to 
edit the code)
It seems that this project in now unmaintained, could the developer(s) if this 
is 
right?

Original comment by thraw...@gmail.com on 11 Mar 2009 at 6:30

GoogleCodeExporter commented 8 years ago
I'm also facing this issue.

Original comment by digz6...@gmail.com on 4 May 2009 at 6:15

GoogleCodeExporter commented 8 years ago
Patched in issue 18

Original comment by ge0ffrey.spam@gmail.com on 23 Dec 2009 at 9:38