|
Quick Lists
|
|
Bug ID:
|
6691718
|
|
Votes
|
0
|
|
Synopsis
|
NIMBUS: NPE thrown when using Nimbus in this photo uploader
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
b22
|
|
Release Fixed
|
6u10(b26)
|
|
State
|
10-Fix Delivered,
Verified,
bug
|
|
Priority:
|
2-High
|
|
Related Bugs
|
6711145
|
|
Submit Date
|
21-APR-2008
|
|
Description
|
After setting Nimbus as the default look and feel through swing.properties, the photo uploader in this site does not load. Java console shows NPE is thrown:
java.lang.NullPointerException
at javax.swing.JSplitPane.setUIProperty(Unknown Source)
at javax.swing.LookAndFeel.installProperty(Unknown Source)
at javax.swing.plaf.basic.BasicSplitPaneUI.installDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicSplitPaneUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JSplitPane.setUI(Unknown Source)
at com.fotki.panels.FileSystemPanel.setUpUI(FileSystemPanel.java:214)
at com.fotki.panels.FileSystemPanel.<init>(FileSystemPanel.java:201)
at com.fotki.base.BrowseScreen.<init>(BrowseScreen.java:71)
at com.fotki.applet.FotkiUploader4.init(FotkiUploader4.java:239)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
To reproduce:
0. Set Nimbus as the default LAF
1. go to http://fotki.com
2. create an album
3. use the Java Photo Uploader
4. NPE thrown.
Environment: Vista, IE 7, FF 2 or 3, 6u10-b22 and nitely build (see comment).
Posted Date : 2008-04-21 22:55:27.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
When using Nimbus LAF we must support the use of BasicUI classes for single components when the main UI is using Nimbus LAF. We have seen many cases like this where UIManager keys that are required by basic are not set by default by Nimbus and cause Basic to throw NPE errors. In this case they are using BasicSplitPaneUI which is expecting a value to be stored in UIManager for "SplitPane.dividerSize" and we are not setting this in Nimbus as we don't need it. So we need to add this key and a sensable value for it to UIManager.
Also it looks like the UI is being built in a thread that is not the EDT which may cause other issues in the applet.
*** (#1 of 1): [ UNSAVED ] xxxxx@xxxxx
Posted Date : 2008-05-21 21:05:31.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |