Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JFileChooser Problem in 1.4 ?

6 views
Skip to first unread message

Ingo Proetel

unread,
Feb 14, 2002, 11:53:40 AM2/14/02
to
Hi,

I tried an application that works fine on jdk 1.3.1 with the jdk 1.4.0.
It seems every time I try to instanciate a JFileChooser I get the
following NullPointerException:

java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder.getChildByPath(Win32ShellFolder.java:570)
at
sun.awt.shell.Win32ShellFolderManager.getPersonal(Win32ShellFolderManager.java:92)
at sun.awt.shell.Win32ShellFolder.listFiles(Win32ShellFolder.java:484)
at
sun.awt.shell.Win32ShellFolderManager.get(Win32ShellFolderManager.java:152)
at sun.awt.shell.ShellFolder.get(ShellFolder.java:208)
at
javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFileChooserUI.java:310)
at
javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:130)
at
javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserUI.java:152)
at javax.swing.JComponent.setUI(JComponent.java:445)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1701)
at javax.swing.JFileChooser.setup(JFileChooser.java:345)
at javax.swing.JFileChooser.<init>(JFileChooser.java:320)
at javax.swing.JFileChooser.<init>(JFileChooser.java:273)
at com.itiv.generalStore.mdlTool.GMdlGUI.<init>(GMdlGUI.java:42)

This happens independent of which constructor I use.
Has anybody seen this also ?

ingo

Richard Reynolds

unread,
Feb 14, 2002, 4:31:43 PM2/14/02
to
JFIleChooser is a horlix, especially in 1.4. Send a bug report to sun about
it, there it will join a host of others that don't get fixed!
Try selecting 100 files in it at once, then go and have a cup of tea and
come back to see if it's returned yet!

"Ingo Proetel" <pro...@itiv.uni-karlsruhe.de> wrote in message
news:3C6BEB94...@itiv.uni-karlsruhe.de...

0 new messages