Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by Lori M Olson [TeamB]
Thu, 31 Mar 2005 00:05
NPE in JFileChooser on Windows XP
Author: Lori M Olson [TeamB]
Date: Thu, 31 Mar 2005 00:05
Date: Thu, 31 Mar 2005 00:05
93 lines
4023 bytes
4023 bytes
I'm baffled. I'm just running a little test program from inside
JBuilder that invokes the JFileChooser, with a filter for only XML
files, and I'm getting this exception thrown in the console. Any ideas?
java.lang.NullPointerException
at
javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1155)
at
javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1098)
at javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:736)
at javax.swing.JList.getCellBounds(JList.java:1175)
at javax.swing.JList.ensureIndexIsVisible(JList.java:955)
at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI.ensureIndexIsVisible(WindowsFileChooserUI.java:1797)
at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI.ensureFileIsVisible(WindowsFileChooserUI.java:1805)
at javax.swing.JFileChooser.ensureFileIsVisible(JFileChooser.java:570)
at javax.swing.JFileChooser.setSelectedFile(JFileChooser.java:451)
at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI$14.valueChanged(WindowsFileChooserUI.java:1216)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402)
at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411)
at
javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435)
at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI.setFileSelected(WindowsFileChooserUI.java:1558)
at
com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DelayedSelectionUpdater.run(WindowsFileChooserUI.java:1142)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: NPE in JFileChooser on Windows XP
Author: John McGrath [TeamB]
Date: Thu, 31 Mar 2005 08:58
Date: Thu, 31 Mar 2005 08:58
17 lines
1442 bytes
1442 bytes
On 3/30/2005 at 7:05:43 PM, Lori M Olson [TeamB] wrote:
> I'm baffled. I'm just running a little test program from inside
> JBuilder that invokes the JFileChooser, with a filter for only XML
> files, and I'm getting this exception thrown in the console. Any ideas?
Which JDK are you using?
Would you post the test program?
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: NPE in JFileChooser on Windows XP
Author: Lori M Olson [TeamB]
Date: Thu, 31 Mar 2005 14:41
Date: Thu, 31 Mar 2005 14:41
31 lines
1769 bytes
1769 bytes
John McGrath [TeamB] wrote:
>
> Which JDK are you using?
> Would you post the test program?
>
JDK 1.4.2_06
I'll see if I can narrow down a test case. My test program is little,
but it's got dependencies on 2 other projects, one of which has a bunch
of JNI stuff.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads