This seems to be a known Java[tm] bug. See
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6210674

See also
http://www.netbeans.org/issues/show_bug.cgi?id=95147

-----------------------------------------------------------
A DESCRIPTION OF THE PROBLEM :
I own an external firewire harddrive that  use a custom icon. When I
create a JFileChooser using the Windows system L&F I get a
NullPointerException.
-----------------------------------------------------------

--> The workaround seems to change the look & feel from "Windows" to
"Metal". For this, simply use Options|Options, General section and
choose "Metal" from the "Style" combobox and then restart XXE.


---
PS: Dragging a file from the Windows Explorer and dropping it onto XXE
should work fine too.



Lukasz Krolicki wrote:
> Hello
> 
> I have problem with using open file window... it does not appear :((
> 
> I have downloaded standard version 3.5.2 containing private JRE.
> 
> awt.toolkit - sun.awt.windows.WToolkit
> Java SE 1.6.0 b105
> Windows XP 5.1 x86
> 
> 
> Here is the error:
> 
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>         at javax.swing.ImageIcon.<init>(Unknown Source)
>         at javax.swing.ImageIcon.<init>(Unknown Source)
>         at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
>         at
> com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFo
> lder(Unknown Source)
>         at
> com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponent
> s(Unknown Source)
>         at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown
> Source)
>         at
> com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknow
> n Source)
>         at javax.swing.JComponent.setUI(Unknown Source)
>         at javax.swing.JFileChooser.updateUI(Unknown Source)
>         at javax.swing.JFileChooser.setup(Unknown Source)
>         at javax.swing.JFileChooser.<init>(Unknown Source)
>         at javax.swing.JFileChooser.<init>(Unknown Source)
>         at
> com.xmlmind.xmleditapp.kit.ChooseURLSupport.selectOpenFile(ChooseURLS
> upport.java:161)
>         at
> com.xmlmind.xmleditapp.kit.ChooseURLSupport.selectOpenURL(ChooseURLSu
> pport.java:62)
>         at
> com.xmlmind.xmleditapp.kit.part.OpenAction.init(OpenAction.java:37)
>         at
> com.xmlmind.xmleditapp.kit.LengthyAction.doIt(LengthyAction.java:31)
>         at
> com.xmlmind.xmleditapp.kit.AppAction.actionPerformed(AppAction.java:3
> 6)
>         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown
> Source)
>         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
> Source)
>         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>         at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
> ce)
>         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
>         at java.awt.Component.processMouseEvent(Unknown Source)
>         at javax.swing.JComponent.processMouseEvent(Unknown Source)
>         at java.awt.Component.processEvent(Unknown Source)
>         at java.awt.Container.processEvent(Unknown Source)
>         at java.awt.Component.dispatchEventImpl(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>         at java.awt.Container.dispatchEventImpl(Unknown Source)
>         at java.awt.Window.dispatchEventImpl(Unknown Source)
>         at java.awt.Component.dispatchEvent(Unknown Source)
>         at java.awt.EventQueue.dispatchEvent(Unknown Source)
>         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
> Source)
>         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
> Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>         at java.awt.EventDispatchThread.run(Unknown Source)
> 

Reply via email to