javax.swing
Class JFileChooser
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JFileChooser
All Implemented Interfaces:
Accessible, Serializable, ImageObserver, MenuContainer, Serializable
JFileChooser
Author:ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
public static final String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
ACCESSORY_CHANGED_PROPERTY
public static final String ACCESSORY_CHANGED_PROPERTY
ACCESSORY_CHANGED_PROPERTY
APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
public static final String APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
APPROVE_BUTTON_TEXT_CHANGED_PROPERTY
public static final String APPROVE_BUTTON_TEXT_CHANGED_PROPERTY
APPROVE_BUTTON_TEXT_CHANGED_PROPERTY
APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY
public static final String APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY
APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY
APPROVE_OPTION
public static final int APPROVE_OPTION
APPROVE_OPTION
APPROVE_SELECTION
public static final String APPROVE_SELECTION
APPROVE_SELECTION
CANCEL_OPTION
public static final int CANCEL_OPTION
CANCEL_OPTION
CANCEL_SELECTION
public static final String CANCEL_SELECTION
CANCEL_SELECTION
CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY
public static final String CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY
CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY
CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
public static final String CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
CUSTOM_DIALOG
public static final int CUSTOM_DIALOG
CUSTOM_DIALOG
DIALOG_TITLE_CHANGED_PROPERTY
public static final String DIALOG_TITLE_CHANGED_PROPERTY
DIALOG_TITLE_CHANGED_PROPERTY
DIALOG_TYPE_CHANGED_PROPERTY
public static final String DIALOG_TYPE_CHANGED_PROPERTY
DIALOG_TYPE_CHANGED_PROPERTY
DIRECTORIES_ONLY
public static final int DIRECTORIES_ONLY
DIRECTORIES_ONLY
DIRECTORY_CHANGED_PROPERTY
public static final String DIRECTORY_CHANGED_PROPERTY
DIRECTORY_CHANGED_PROPERTY
ERROR_OPTION
public static final int ERROR_OPTION
ERROR_OPTION
FILES_AND_DIRECTORIES
public static final int FILES_AND_DIRECTORIES
FILES_AND_DIRECTORIES
FILES_ONLY
public static final int FILES_ONLY
FILES_ONLY
FILE_FILTER_CHANGED_PROPERTY
public static final String FILE_FILTER_CHANGED_PROPERTY
FILE_FILTER_CHANGED_PROPERTY
FILE_HIDING_CHANGED_PROPERTY
public static final String FILE_HIDING_CHANGED_PROPERTY
FILE_HIDING_CHANGED_PROPERTY
FILE_SELECTION_MODE_CHANGED_PROPERTY
public static final String FILE_SELECTION_MODE_CHANGED_PROPERTY
FILE_SELECTION_MODE_CHANGED_PROPERTY
FILE_SYSTEM_VIEW_CHANGED_PROPERTY
public static final String FILE_SYSTEM_VIEW_CHANGED_PROPERTY
FILE_SYSTEM_VIEW_CHANGED_PROPERTY
FILE_VIEW_CHANGED_PROPERTY
public static final String FILE_VIEW_CHANGED_PROPERTY
FILE_VIEW_CHANGED_PROPERTY
MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
public static final String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
OPEN_DIALOG
public static final int OPEN_DIALOG
OPEN_DIALOG
SAVE_DIALOG
public static final int SAVE_DIALOG
SAVE_DIALOG
SELECTED_FILES_CHANGED_PROPERTY
public static final String SELECTED_FILES_CHANGED_PROPERTY
SELECTED_FILES_CHANGED_PROPERTY
SELECTED_FILE_CHANGED_PROPERTY
public static final String SELECTED_FILE_CHANGED_PROPERTY
SELECTED_FILE_CHANGED_PROPERTY
accessibleContext
protected AccessibleContext accessibleContext
accessibleContext
JFileChooser
public JFileChooser()
Constructor JFileChooser
JFileChooser
public JFileChooser(java.io.File currentDirectory)
Constructor JFileChooser
Parameters:
JFileChooser
public JFileChooser(java.io.File currentDirectory, javax.swing.filechooser.FileSystemView fsv)
Constructor JFileChooser
Parameters:
JFileChooser
public JFileChooser(java.lang.String currentDirectoryPath)
Constructor JFileChooser
Parameters:
JFileChooser
public JFileChooser(java.lang.String currentDirectoryPath, javax.swing.filechooser.FileSystemView fsv)
Constructor JFileChooser
Parameters:
JFileChooser
public JFileChooser(javax.swing.filechooser.FileSystemView fsv)
Constructor JFileChooser
Parameters:
accept
public boolean accept(java.io.File file)
accept
Parameters:
addActionListener
public void addActionListener(java.awt.event.ActionListener listener)
addActionListener
Parameters:
addChoosableFileFilter
public void addChoosableFileFilter(java.io.FileFilter filter)
addChoosableFileFilter
Parameters:
approveSelection
public void approveSelection()
approveSelection
cancelSelection
public void cancelSelection()
cancelSelection
changeToParentDirectory
public void changeToParentDirectory()
changeToParentDirectory
ensureFileIsVisible
public void ensureFileIsVisible(java.io.File file)
ensureFileIsVisible
Parameters:
fireActionPerformed
protected void fireActionPerformed(java.lang.String command)
fireActionPerformed
Parameters:
getAcceptAllFileFilter
public FileFilter getAcceptAllFileFilter()
getAcceptAllFileFilter
getAccessibleContext
public AccessibleContext getAccessibleContext()
getAccessibleContext
getAccessory
public JComponent getAccessory()
getAccessory
getApproveButtonMnemonic
public int getApproveButtonMnemonic()
getApproveButtonMnemonic
getApproveButtonText
public String getApproveButtonText()
getApproveButtonText
getApproveButtonToolTipText
public String getApproveButtonToolTipText()
getApproveButtonToolTipText
getChoosableFileFilters
public FileFilter[] getChoosableFileFilters()
getChoosableFileFilters
getControlButtonsAreShown
public boolean getControlButtonsAreShown()
getControlButtonsAreShown
getCurrentDirectory
public File getCurrentDirectory()
getCurrentDirectory
getDescription
public String getDescription(java.io.File file)
getDescription
Parameters:
getDialogTitle
public String getDialogTitle()
getDialogTitle
getDialogType
public int getDialogType()
getDialogType
getFileFilter
public FileFilter getFileFilter()
getFileFilter
getFileSelectionMode
public int getFileSelectionMode()
getFileSelectionMode
getFileSystemView
public FileSystemView getFileSystemView()
getFileSystemView
getFileView
public FileView getFileView()
getFileView
getIcon
public Icon getIcon(java.io.File file)
getIcon
Parameters:
getName
public String getName(java.io.File file)
getName
Parameters:
getSelectedFile
public File getSelectedFile()
getSelectedFile
getSelectedFiles
public File[] getSelectedFiles()
getSelectedFiles
getTypeDescription
public String getTypeDescription(java.io.File file)
getTypeDescription
Parameters:
getUI
public FileChooserUI getUI()
getUI
getUIClassID
public String getUIClassID()
getUIClassID
isAcceptAllFileFilterUsed
public boolean isAcceptAllFileFilterUsed()
isAcceptAllFileFilterUsed
isDirectorySelectionEnabled
public boolean isDirectorySelectionEnabled()
isDirectorySelectionEnabled
isFileHidingEnabled
public boolean isFileHidingEnabled()
isFileHidingEnabled
isFileSelectionEnabled
public boolean isFileSelectionEnabled()
isFileSelectionEnabled
isMultiSelectionEnabled
public boolean isMultiSelectionEnabled()
isMultiSelectionEnabled
isTraversable
public boolean isTraversable(java.io.File file)
isTraversable
Parameters:
paramString
protected String paramString()
paramString
removeActionListener
public void removeActionListener(java.awt.event.ActionListener listener)
removeActionListener
Parameters:
removeChoosableFileFilter
public boolean removeChoosableFileFilter(java.io.FileFilter filter)
removeChoosableFileFilter
Parameters:
rescanCurrentDirectory
public void rescanCurrentDirectory()
rescanCurrentDirectory
resetChoosableFileFilters
public void resetChoosableFileFilters()
resetChoosableFileFilters
setAcceptAllFileFilterUsed
public void setAcceptAllFileFilterUsed(boolean value)
setAcceptAllFileFilterUsed
Parameters:
setAccessory
public void setAccessory(javax.swing.JComponent accessory)
setAccessory
Parameters:
setApproveButtonMnemonic
public void setApproveButtonMnemonic(char mnemonic)
setApproveButtonMnemonic
Parameters:
setApproveButtonMnemonic
public void setApproveButtonMnemonic(int mnemonic)
setApproveButtonMnemonic
Parameters:
setApproveButtonText
public void setApproveButtonText(java.lang.String text)
setApproveButtonText
Parameters:
setApproveButtonToolTipText
public void setApproveButtonToolTipText(java.lang.String text)
setApproveButtonToolTipText
Parameters:
setControlButtonsAreShown
public void setControlButtonsAreShown(boolean value)
setControlButtonsAreShown
Parameters:
setCurrentDirectory
public void setCurrentDirectory(java.io.File directory)
setCurrentDirectory
Parameters:
setDialogTitle
public void setDialogTitle(java.lang.String title)
setDialogTitle
Parameters:
setDialogType
public void setDialogType(int type)
setDialogType
Parameters:
setFileFilter
public void setFileFilter(java.io.FileFilter filter)
setFileFilter
Parameters:
setFileHidingEnabled
public void setFileHidingEnabled(boolean enabled)
setFileHidingEnabled
Parameters:
setFileSelectionMode
public void setFileSelectionMode(int mode)
setFileSelectionMode
Parameters:
setFileSystemView
public void setFileSystemView(javax.swing.filechooser.FileSystemView fsv)
setFileSystemView
Parameters:
setFileView
public void setFileView(javax.swing.filechooser.FileView view)
setFileView
Parameters:
setMultiSelectionEnabled
public void setMultiSelectionEnabled(boolean enabled)
setMultiSelectionEnabled
Parameters:
setSelectedFile
public void setSelectedFile(java.io.File file)
setSelectedFile
Parameters:
setSelectedFiles
public void setSelectedFiles(java.io.File[] files)
setSelectedFiles
Parameters:
setup
protected void setup(javax.swing.filechooser.FileSystemView view)
setup
Parameters:
showDialog
public int showDialog(java.awt.Component parent, java.lang.String approveButtonText)
showDialog
Parameters:
showOpenDialog
public int showOpenDialog(java.awt.Component parent)
showOpenDialog
Parameters:
showSaveDialog
public int showSaveDialog(java.awt.Component parent)
showSaveDialog
Parameters:
updateUI
public void updateUI()
updateUI