Skip to content

8283642: JavaDoc of JFileChooser() need to be updated for default directory in Windows #7983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/java.desktop/share/classes/javax/swing/JFileChooser.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public class JFileChooser extends JComponent implements Accessible {
/**
* Constructs a <code>JFileChooser</code> pointing to the user's
* default directory. This default depends on the operating system.
* It is typically the "My Documents" folder on Windows, and the
* It is typically the "Documents" folder on Windows, and the
* user's home directory on Unix.
*/
public JFileChooser() {
Expand All @@ -315,7 +315,7 @@ public JFileChooser() {
* Passing in a <code>null</code>
* string causes the file chooser to point to the user's default directory.
* This default depends on the operating system. It is
* typically the "My Documents" folder on Windows, and the user's
* typically the "Documents" folder on Windows, and the user's
* home directory on Unix.
*
* @param currentDirectoryPath a <code>String</code> giving the path
Expand All @@ -330,7 +330,7 @@ public JFileChooser(String currentDirectoryPath) {
* as the path. Passing in a <code>null</code> file
* causes the file chooser to point to the user's default directory.
* This default depends on the operating system. It is
* typically the "My Documents" folder on Windows, and the user's
* typically the "Documents" folder on Windows, and the user's
* home directory on Unix.
*
* @param currentDirectory a <code>File</code> object specifying
Expand Down Expand Up @@ -570,7 +570,7 @@ public File getCurrentDirectory() {
* Sets the current directory. Passing in <code>null</code> sets the
* file chooser to point to the user's default directory.
* This default depends on the operating system. It is
* typically the "My Documents" folder on Windows, and the user's
* typically the "Documents" folder on Windows, and the user's
* home directory on Unix.
*
* If the file passed in as <code>currentDirectory</code> is not a
Expand Down