[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Added constructor to javax.swing.JFileChooser
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Added constructor to javax.swing.JFileChooser |
Date: |
Mon, 23 May 2005 15:25:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 |
JFileChooser was missing one constructor JFileChooser(String,
FileSystemView). I added this.
2005-05-23 Roman Kennke <address@hidden>
* javax/swing/JFileChooser.java
(constructor(String, FileSystemView)): Added constructor.
/Roman
Index: javax/swing/JFileChooser.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JFileChooser.java,v
retrieving revision 1.8
diff -u -r1.8 JFileChooser.java
--- javax/swing/JFileChooser.java 23 May 2005 10:55:38 -0000 1.8
+++ javax/swing/JFileChooser.java 23 May 2005 13:23:15 -0000
@@ -241,6 +241,20 @@
}
/**
+ * Creates a new JFileChooser object with the specified directory and
+ * FileSystemView.
+ *
+ * @param currentDirectoryPath the directory that should initially be
+ * shown the filechooser
+ * @param fsv the FileSystemView object to use
+ */
+ public JFileChooser(String currentDirectoryPath, FileSystemView fsv)
+ {
+ setup(fsv);
+ setCurrentDirectory(fsv.createFileObject(currentDirectoryPath));
+ }
+
+ /**
* Creates a new JFileChooser object.
*
* @param currentDirectory DOCUMENT ME!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Added constructor to javax.swing.JFileChooser,
Roman Kennke <=