Description: 在应用程序中通常都会涉及文件的打开和保存等操作。在Java类库中javax.swing.JFileChooser类提供了方便的文件操作方法,不但支持打开、保存文件对话框,还支持文件和目录选择,以及单选和多选文件。
本例中演示了如何显示打开和保存两种对话框,如何用文件选择器来打开特殊的文件。-The application usually involves a file open and save operations. Javax.swing.JFileChooser class in the Java class libraries provides a convenient file operation, not only supports the Open, File Save dialog box also supports file and directory selection, as well as radio and multi-selected files.
In this case demonstrated how to open and save the two dialog box, how to use the file selector to open a special file.
Platform: |
Size: 15360 |
Author:少壮 |
Hits: