提交 26b830e9 编写于 作者: B bagiras

8000425: FileDialog documentation should be enhanced

Reviewed-by: serb, anthony
上级 22d2bfc7
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -457,9 +457,16 @@ public class FileDialog extends Dialog { ...@@ -457,9 +457,16 @@ public class FileDialog extends Dialog {
* specified file. This file becomes the default file if it is set * specified file. This file becomes the default file if it is set
* before the file dialog window is first shown. * before the file dialog window is first shown.
* <p> * <p>
* 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.
* <p>
* This method accepts either a full file path, or a file name with an
* extension if used together with the {@code setDirectory} method.
* <p>
* Specifying "" as the file is exactly equivalent to specifying * Specifying "" as the file is exactly equivalent to specifying
* <code>null</code> * {@code null} as the file.
* as the file.
* *
* @param file the file being set * @param file the file being set
* @see #getFile * @see #getFile
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册