[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-classpath] [bug #13556] swing: JFileChooser("/thisdoesnotexist") th
From: |
anonymous |
Subject: |
[bug-classpath] [bug #13556] swing: JFileChooser("/thisdoesnotexist") throws NullPointerException |
Date: |
Mon, 27 Jun 2005 19:56:15 +0000 |
User-agent: |
Elinks |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13556>
Summary: swing: JFileChooser("/thisdoesnotexist") throws
NullPointerException
Project: classpath
Submitted by: None
Submitted on: Mon 06/27/05 at 15:56
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
Steps to reproduce:
1. Compile and run the attached testcase.
Expected results:
1. filechooser's "Open" dialog shows user's home directory.
Actual results:
1. No window is shown and program throws the following exception:
java.lang.NullPointerException
at javax.swing.filechooser.FileSystemView.getFiles
(FileSystemView.java:143)
at javax.swing.plaf.basic.BasicDirectoryModel.validateFileCache
(BasicDirectoryModel.java:292)
at javax.swing.plaf.basic.BasicFileChooserUI.rescanCurrentDirectory
(BasicFileChooserUI.java:1639)
at javax.swing.plaf.basic.BasicFileChooserUI$12.propertyChange
(BasicFileChooserUI.java:1583)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(SwingPropertyChangeSupport.java:223)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(SwingPropertyChangeSupport.java:196)
at javax.swing.JComponent.firePropertyChange (JComponent.java:721)
at javax.swing.JFileChooser.setCurrentDirectory (JFileChooser.java:405)
at javax.swing.JFileChooser.<init> (JFileChooser.java:243)
at testcase.<init> (testcase.java:8)
at testcase.main (testcase.java:5)
Testcase:
import javax.swing.*;
import java.awt.*;
public class testcase extends JFrame {
public static void main(String[] args) {
new testcase();
}
public testcase() {
new JFileChooser("/thisdoesnotexist").showOpenDialog(this);
}
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13556>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-classpath] [bug #13556] swing: JFileChooser("/thisdoesnotexist") throws NullPointerException,
anonymous <=