diff --git a/src/share/classes/java/awt/FileDialog.java b/src/share/classes/java/awt/FileDialog.java index 3739570abb521d3f93073cafb604e12d893c2c78..0fc63c7fde473f08dd4d7dc9b6e5d3499c9d4afb 100644 --- a/src/share/classes/java/awt/FileDialog.java +++ b/src/share/classes/java/awt/FileDialog.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -457,9 +457,16 @@ public class FileDialog extends Dialog { * specified file. This file becomes the default file if it is set * before the file dialog window is first shown. *
+ * When the dialog is shown, the specified file is selected. The kind of + * selection depends on the file existence, the dialog type, and the native + * platform. E.g., the file could be highlighted in the file list, or a + * file name editbox could be populated with the file name. + *
+ * This method accepts either a full file path, or a file name with an + * extension if used together with the {@code setDirectory} method. + *
* Specifying "" as the file is exactly equivalent to specifying
- * null
- * as the file.
+ * {@code null} as the file.
*
* @param file the file being set
* @see #getFile