DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39818>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39818 Summary: WebdavSystemView doesn't work with JRE 1.5 Product: Slide Version: 2.1 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: WebDAV client AssignedTo: slide-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] In JRE 1.5, the JFileChooser by default will call FileSystemView.getSystemIcon when being initialized. Because the WebdavSystemView class doesn't implement this method, it calls the inherited getSystemIcon, which attempts to use the windows shell methods to find the icon. But since windows cannot open the "file" in question (because it is a DAV path), it throws an exception and the dialog cannot initialize (stack trace below). The fix is to implement the getSystemIcon method for the WebdavSystemView class. It can be as simple as: public Icon getSystemIcon(File f) { //return a new blank icon return new javax.swing.ImageIcon(); } Stack trace of error: FileSystemView.getShellFolder: f=http://xxxxxx.ncsa.uiuc.edu:8080/sam/files/maeviz_test_data/ java.io.FileNotFoundException: File http://xxxxxx.ncsa.uiuc.edu:8080/sam/files/maeviz_test_data/ not found at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Unknown Source) at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Unknown Source) at sun.awt.shell.ShellFolder.getShellFolder(Unknown Source) at javax.swing.filechooser.FileSystemView.getShellFolder(Unknown Source) at javax.swing.filechooser.FileSystemView.getSystemIcon(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$WindowsFileView.getIcon(Unknown Source) at javax.swing.JFileChooser.getIcon(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxRenderer.getListCellRendererComponent(Unknown Source) at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source) at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source) at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source) at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source) at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source) at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source) at javax.swing.JList.setSelectedIndex(Unknown Source) at javax.swing.plaf.basic.BasicComboPopup.setListSelection(Unknown Source) at javax.swing.plaf.basic.BasicComboPopup.access$300(Unknown Source) at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(Unknown Source) at javax.swing.JComboBox.fireItemStateChanged(Unknown Source) at javax.swing.JComboBox.selectedItemChanged(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.setSelectedItem(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.addItem(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.access$1000(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.doDirectoryChanged(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.access$1300(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$8.propertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.awt.Component.firePropertyChange(Unknown Source) at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source) at javax.swing.JFileChooser.<init>(Unknown Source) at javax.swing.JFileChooser.<init>(Unknown Source) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]