📄 jfilechooser.html
字号:
<BR> Returns a boolean indicating whether the accept and cancel buttons are shown in the file chooser.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/io/File.html">File</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getCurrentDirectory()">getCurrentDirectory</A></B>()</CODE><BR> Returns the current directory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getDescription(java.io.File)">getDescription</A></B>(<A HREF="../../java/io/File.html">File</A> f)</CODE><BR> Returns the file description.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getDialogTitle()">getDialogTitle</A></B>()</CODE><BR> Gets the string that goes in the <code>JFileChooser</code>'s titlebar.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getDialogType()">getDialogType</A></B>()</CODE><BR> Returns the type of this dialog.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/filechooser/FileFilter.html">FileFilter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getFileFilter()">getFileFilter</A></B>()</CODE><BR> Returns the currently selected file filter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getFileSelectionMode()">getFileSelectionMode</A></B>()</CODE><BR> Returns the current file-selection mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/filechooser/FileSystemView.html">FileSystemView</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getFileSystemView()">getFileSystemView</A></B>()</CODE><BR> Returns the file system view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/filechooser/FileView.html">FileView</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getFileView()">getFileView</A></B>()</CODE><BR> Returns the current file view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getIcon(java.io.File)">getIcon</A></B>(<A HREF="../../java/io/File.html">File</A> f)</CODE><BR> Returns the icon for this file or type of file, depending on the system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getName(java.io.File)">getName</A></B>(<A HREF="../../java/io/File.html">File</A> f)</CODE><BR> Returns the filename.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/io/File.html">File</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getSelectedFile()">getSelectedFile</A></B>()</CODE><BR> Returns the selected file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/io/File.html">File</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getSelectedFiles()">getSelectedFiles</A></B>()</CODE><BR> Returns a list of selected files if the file chooser is set to allow multiple selection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getTypeDescription(java.io.File)">getTypeDescription</A></B>(<A HREF="../../java/io/File.html">File</A> f)</CODE><BR> Returns the file type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/plaf/FileChooserUI.html">FileChooserUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getUI()">getUI</A></B>()</CODE><BR> Gets the UI object which implements the L&F for this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Returns a string that specifies the name of the L&F class that renders this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#isAcceptAllFileFilterUsed()">isAcceptAllFileFilterUsed</A></B>()</CODE><BR> Returns whether the <code>AcceptAll FileFilter</code> is used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#isDirectorySelectionEnabled()">isDirectorySelectionEnabled</A></B>()</CODE><BR> Convenience call that determines if directories are selectable based on the current file selection mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#isFileHidingEnabled()">isFileHidingEnabled</A></B>()</CODE><BR> Returns true if hidden files are not shown in the file chooser; otherwise, returns false.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#isFileSelectionEnabled()">isFileSelectionEnabled</A></B>()</CODE><BR> Convenience call that determines if files are selectable based on the current file selection mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#isMultiSelectionEnabled()">isMultiSelectionEnabled</A></B>()</CODE><BR> Returns true if multiple files can be selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#isTraversable(java.io.File)">isTraversable</A></B>(<A HREF="../../java/io/File.html">File</A> f)</CODE><BR> Returns true if the file (directory) can be visited.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this <code>JFileChooser</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#removeActionListener(java.awt.event.ActionListener)">removeActionListener</A></B>(<A HREF="../../java/awt/event/ActionListener.html">ActionListener</A> l)</CODE><BR> Removes an <code>ActionListener</code> from the button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#removeChoosableFileFilter(javax.swing.filechooser.FileFilter)">removeChoosableFileFilter</A></B>(<A HREF="../../javax/swing/filechooser/FileFilter.html">FileFilter</A> f)</CODE><BR> Removes a filter from the list of user choosable file filters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JFileChooser.html#rescanCurrentDirectory()">rescanCurrentDirectory</A></B>()</CODE><BR> Tells the UI to rescan its files list from the current directory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -