javax.swing
Class JFileChooser

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Component sample code for java.awt.Component definition code for java.awt.Component 
      extended by java.awt.Container sample code for java.awt.Container definition code for java.awt.Container 
          extended by javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent 
              extended by javax.swing.JFileChooser
All Implemented Interfaces:
ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , MenuContainer sample code for java.awt.MenuContainer definition code for java.awt.MenuContainer , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible

public class JFileChooser
extends JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
implements Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible

JFileChooser provides a simple mechanism for the user to choose a file. For information about using JFileChooser, see How to Use File Choosers, a section in The Java Tutorial.

The following code pops up a file chooser for the user's home directory that sees only .jpg and .gif images:

    JFileChooser chooser = new JFileChooser();
    // Note: source for ExampleFileFilter can be found in FileChooserDemo,
    // under the demo/jfc directory in the JDK.
    ExampleFileFilter filter = new ExampleFileFilter();
    filter.addExtension("jpg");
    filter.addExtension("gif");
    filter.setDescription("JPG & GIF Images");
    chooser.setFileFilter(filter);
    int returnVal = chooser.showOpenDialog(parent);
    if(returnVal == JFileChooser.APPROVE_OPTION) {
       System.out.println("You chose to open this file: " +
            chooser.getSelectedFile().getName());
    }
 

See Also:
Serialized Form

Nested Class Summary
protected  class JFileChooser.AccessibleJFileChooser sample code for javax.swing.JFileChooser.AccessibleJFileChooser definition code for javax.swing.JFileChooser.AccessibleJFileChooser
          This class implements accessibility support for the JFileChooser class.
 
Nested classes/interfaces inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent , Component.BltBufferStrategy sample code for java.awt.Component.BltBufferStrategy definition code for java.awt.Component.BltBufferStrategy , Component.FlipBufferStrategy sample code for java.awt.Component.FlipBufferStrategy definition code for java.awt.Component.FlipBufferStrategy
 
Field Summary
static String sample code for java.lang.String definition code for java.lang.String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
          Identifies whether a the AcceptAllFileFilter is used or not.
protected  AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext accessibleContext sample code for javax.swing.JFileChooser.accessibleContext definition code for javax.swing.JFileChooser.accessibleContext
           
static String sample code for java.lang.String definition code for java.lang.String ACCESSORY_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.ACCESSORY_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.ACCESSORY_CHANGED_PROPERTY
          Says that a different accessory component is in use (for example, to preview files).
static String sample code for java.lang.String definition code for java.lang.String APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
          Identifies change in the mnemonic for the approve (yes, ok) button.
static String sample code for java.lang.String definition code for java.lang.String APPROVE_BUTTON_TEXT_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY
          Identifies change in the text on the approve (yes, ok) button.
static String sample code for java.lang.String definition code for java.lang.String APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY
          Identifies change in the tooltip text for the approve (yes, ok) button.
static int APPROVE_OPTION sample code for javax.swing.JFileChooser.APPROVE_OPTION definition code for javax.swing.JFileChooser.APPROVE_OPTION
          Return value if approve (yes, ok) is chosen.
static String sample code for java.lang.String definition code for java.lang.String APPROVE_SELECTION sample code for javax.swing.JFileChooser.APPROVE_SELECTION definition code for javax.swing.JFileChooser.APPROVE_SELECTION
          Instruction to approve the current selection (same as pressing yes or ok).
static int CANCEL_OPTION sample code for javax.swing.JFileChooser.CANCEL_OPTION definition code for javax.swing.JFileChooser.CANCEL_OPTION
          Return value if cancel is chosen.
static String sample code for java.lang.String definition code for java.lang.String CANCEL_SELECTION sample code for javax.swing.JFileChooser.CANCEL_SELECTION definition code for javax.swing.JFileChooser.CANCEL_SELECTION
          Instruction to cancel the current selection.
static String sample code for java.lang.String definition code for java.lang.String CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY
          Identifies a change in the list of predefined file filters the user can choose from.
static String sample code for java.lang.String definition code for java.lang.String CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
          Instruction to display the control buttons.
static int CUSTOM_DIALOG sample code for javax.swing.JFileChooser.CUSTOM_DIALOG definition code for javax.swing.JFileChooser.CUSTOM_DIALOG
          Type value indicating that the JFileChooser supports a developer-specified file operation.
static String sample code for java.lang.String definition code for java.lang.String DIALOG_TITLE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY
          Identifies a change in the dialog title.
static String sample code for java.lang.String definition code for java.lang.String DIALOG_TYPE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY
          Identifies a change in the type of files displayed (files only, directories only, or both files and directories).
static int DIRECTORIES_ONLY sample code for javax.swing.JFileChooser.DIRECTORIES_ONLY definition code for javax.swing.JFileChooser.DIRECTORIES_ONLY
          Instruction to display only directories.
static String sample code for java.lang.String definition code for java.lang.String DIRECTORY_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.DIRECTORY_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.DIRECTORY_CHANGED_PROPERTY
          Identifies user's directory change.
static int ERROR_OPTION sample code for javax.swing.JFileChooser.ERROR_OPTION definition code for javax.swing.JFileChooser.ERROR_OPTION
          Return value if an error occured.
static String sample code for java.lang.String definition code for java.lang.String FILE_FILTER_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_FILTER_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.FILE_FILTER_CHANGED_PROPERTY
          User changed the kind of files to display.
static String sample code for java.lang.String definition code for java.lang.String FILE_HIDING_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_HIDING_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.FILE_HIDING_CHANGED_PROPERTY
          Identifies a change in the display-hidden-files property.
static String sample code for java.lang.String definition code for java.lang.String FILE_SELECTION_MODE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_SELECTION_MODE_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.FILE_SELECTION_MODE_CHANGED_PROPERTY
          Identifies a change in the kind of selection (single, multiple, etc.).
static String sample code for java.lang.String definition code for java.lang.String FILE_SYSTEM_VIEW_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_SYSTEM_VIEW_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.FILE_SYSTEM_VIEW_CHANGED_PROPERTY
          Says that a different object is being used to find available drives on the system.
static String sample code for java.lang.String definition code for java.lang.String FILE_VIEW_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_VIEW_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.FILE_VIEW_CHANGED_PROPERTY
          Says that a different object is being used to retrieve file information.
static int FILES_AND_DIRECTORIES sample code for javax.swing.JFileChooser.FILES_AND_DIRECTORIES definition code for javax.swing.JFileChooser.FILES_AND_DIRECTORIES
          Instruction to display both files and directories.
static int FILES_ONLY sample code for javax.swing.JFileChooser.FILES_ONLY definition code for javax.swing.JFileChooser.FILES_ONLY
          Instruction to display only files.
static String sample code for java.lang.String definition code for java.lang.String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
          Enables multiple-file selections.
static int OPEN_DIALOG sample code for javax.swing.JFileChooser.OPEN_DIALOG definition code for javax.swing.JFileChooser.OPEN_DIALOG
          Type value indicating that the JFileChooser supports an "Open" file operation.
static int SAVE_DIALOG sample code for javax.swing.JFileChooser.SAVE_DIALOG definition code for javax.swing.JFileChooser.SAVE_DIALOG
          Type value indicating that the JFileChooser supports a "Save" file operation.
static String sample code for java.lang.String definition code for java.lang.String SELECTED_FILE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.SELECTED_FILE_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.SELECTED_FILE_CHANGED_PROPERTY
          Identifies change in user's single-file selection.
static String sample code for java.lang.String definition code for java.lang.String SELECTED_FILES_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.SELECTED_FILES_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.SELECTED_FILES_CHANGED_PROPERTY
          Identifies change in user's multiple-file selection.
 
Fields inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
listenerList sample code for javax.swing.JComponent.listenerList definition code for javax.swing.JComponent.listenerList , TOOL_TIP_TEXT_KEY sample code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY definition code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY , ui sample code for javax.swing.JComponent.ui definition code for javax.swing.JComponent.ui , UNDEFINED_CONDITION sample code for javax.swing.JComponent.UNDEFINED_CONDITION definition code for javax.swing.JComponent.UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT sample code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT definition code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED sample code for javax.swing.JComponent.WHEN_FOCUSED definition code for javax.swing.JComponent.WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW sample code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW definition code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
BOTTOM_ALIGNMENT sample code for java.awt.Component.BOTTOM_ALIGNMENT definition code for java.awt.Component.BOTTOM_ALIGNMENT , CENTER_ALIGNMENT sample code for java.awt.Component.CENTER_ALIGNMENT definition code for java.awt.Component.CENTER_ALIGNMENT , LEFT_ALIGNMENT sample code for java.awt.Component.LEFT_ALIGNMENT definition code for java.awt.Component.LEFT_ALIGNMENT , RIGHT_ALIGNMENT sample code for java.awt.Component.RIGHT_ALIGNMENT definition code for java.awt.Component.RIGHT_ALIGNMENT , TOP_ALIGNMENT sample code for java.awt.Component.TOP_ALIGNMENT definition code for java.awt.Component.TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver
ABORT sample code for java.awt.image.ImageObserver.ABORT definition code for java.awt.image.ImageObserver.ABORT , ALLBITS sample code for java.awt.image.ImageObserver.ALLBITS definition code for java.awt.image.ImageObserver.ALLBITS , ERROR sample code for java.awt.image.ImageObserver.ERROR definition code for java.awt.image.ImageObserver.ERROR , FRAMEBITS sample code for java.awt.image.ImageObserver.FRAMEBITS definition code for java.awt.image.ImageObserver.FRAMEBITS , HEIGHT sample code for java.awt.image.ImageObserver.HEIGHT definition code for java.awt.image.ImageObserver.HEIGHT , PROPERTIES sample code for java.awt.image.ImageObserver.PROPERTIES definition code for java.awt.image.ImageObserver.PROPERTIES , SOMEBITS sample code for java.awt.image.ImageObserver.SOMEBITS definition code for java.awt.image.ImageObserver.SOMEBITS , WIDTH sample code for java.awt.image.ImageObserver.WIDTH definition code for java.awt.image.ImageObserver.WIDTH
 
Constructor Summary
JFileChooser sample code for javax.swing.JFileChooser.JFileChooser() definition code for javax.swing.JFileChooser.JFileChooser() ()
          Constructs a JFileChooser pointing to the user's default directory.
JFileChooser sample code for javax.swing.JFileChooser.JFileChooser(java.io.File) definition code for javax.swing.JFileChooser.JFileChooser(java.io.File) (File sample code for java.io.File definition code for java.io.File  currentDirectory)
          Constructs a JFileChooser using the given File as the path.
JFileChooser sample code for javax.swing.JFileChooser.JFileChooser(java.io.File, javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.JFileChooser(java.io.File, javax.swing.filechooser.FileSystemView) (File sample code for java.io.File definition code for java.io.File  currentDirectory, FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
          Constructs a JFileChooser using the given current directory and FileSystemView.
JFileChooser sample code for javax.swing.JFileChooser.JFileChooser(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.JFileChooser(javax.swing.filechooser.FileSystemView) (FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
          Constructs a JFileChooser using the given FileSystemView.
JFileChooser sample code for javax.swing.JFileChooser.JFileChooser(java.lang.String) definition code for javax.swing.JFileChooser.JFileChooser(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  currentDirectoryPath)
          Constructs a JFileChooser using the given path.
JFileChooser sample code for javax.swing.JFileChooser.JFileChooser(java.lang.String, javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.JFileChooser(java.lang.String, javax.swing.filechooser.FileSystemView) (String sample code for java.lang.String definition code for java.lang.String  currentDirectoryPath, FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
          Constructs a JFileChooser using the given current directory path and FileSystemView.
 
Method Summary
 boolean accept sample code for javax.swing.JFileChooser.accept(java.io.File) definition code for javax.swing.JFileChooser.accept(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Returns true if the file should be displayed.
 void addActionListener sample code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener) (ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
          Adds an ActionListener to the file chooser.
 void addChoosableFileFilter sample code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) (FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  filter)
          Adds a filter to the list of user choosable file filters.
 void approveSelection sample code for javax.swing.JFileChooser.approveSelection() definition code for javax.swing.JFileChooser.approveSelection() ()
          Called by the UI when the user hits the Approve button (labeled "Open" or "Save", by default).
 void cancelSelection sample code for javax.swing.JFileChooser.cancelSelection() definition code for javax.swing.JFileChooser.cancelSelection() ()
          Called by the UI when the user chooses the Cancel button.
 void changeToParentDirectory sample code for javax.swing.JFileChooser.changeToParentDirectory() definition code for javax.swing.JFileChooser.changeToParentDirectory() ()
          Changes the directory to be set to the parent of the current directory.
protected  JDialog sample code for javax.swing.JDialog definition code for javax.swing.JDialog createDialog sample code for javax.swing.JFileChooser.createDialog(java.awt.Component) definition code for javax.swing.JFileChooser.createDialog(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  parent)
          Creates and returns a new JDialog wrapping this centered on the parent in the parent's frame.
 void ensureFileIsVisible sample code for javax.swing.JFileChooser.ensureFileIsVisible(java.io.File) definition code for javax.swing.JFileChooser.ensureFileIsVisible(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Makes sure that the specified file is viewable, and not hidden.
protected  void fireActionPerformed sample code for javax.swing.JFileChooser.fireActionPerformed(java.lang.String) definition code for javax.swing.JFileChooser.fireActionPerformed(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  command)
          Notifies all listeners that have registered interest for notification on this event type.
 FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter getAcceptAllFileFilter sample code for javax.swing.JFileChooser.getAcceptAllFileFilter() definition code for javax.swing.JFileChooser.getAcceptAllFileFilter() ()
          Returns the AcceptAll file filter.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JFileChooser.getAccessibleContext() definition code for javax.swing.JFileChooser.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JFileChooser.
 JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent getAccessory sample code for javax.swing.JFileChooser.getAccessory() definition code for javax.swing.JFileChooser.getAccessory() ()
          Returns the accessory component.
 ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener [] getActionListeners sample code for javax.swing.JFileChooser.getActionListeners() definition code for javax.swing.JFileChooser.getActionListeners() ()
          Returns an array of all the action listeners registered on this file chooser.
 int getApproveButtonMnemonic sample code for javax.swing.JFileChooser.getApproveButtonMnemonic() definition code for javax.swing.JFileChooser.getApproveButtonMnemonic() ()
          Returns the approve button's mnemonic.
 String sample code for java.lang.String definition code for java.lang.String getApproveButtonText sample code for javax.swing.JFileChooser.getApproveButtonText() definition code for javax.swing.JFileChooser.getApproveButtonText() ()
          Returns the text used in the ApproveButton in the FileChooserUI.
 String sample code for java.lang.String definition code for java.lang.String getApproveButtonToolTipText sample code for javax.swing.JFileChooser.getApproveButtonToolTipText() definition code for javax.swing.JFileChooser.getApproveButtonToolTipText() ()
          Returns the tooltip text used in the ApproveButton.
 FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter [] getChoosableFileFilters sample code for javax.swing.JFileChooser.getChoosableFileFilters() definition code for javax.swing.JFileChooser.getChoosableFileFilters() ()
          Gets the list of user choosable file filters.
 boolean getControlButtonsAreShown sample code for javax.swing.JFileChooser.getControlButtonsAreShown() definition code for javax.swing.JFileChooser.getControlButtonsAreShown() ()
          Returns the value of the controlButtonsAreShown property.
 File sample code for java.io.File definition code for java.io.File getCurrentDirectory sample code for javax.swing.JFileChooser.getCurrentDirectory() definition code for javax.swing.JFileChooser.getCurrentDirectory() ()
          Returns the current directory.
 String sample code for java.lang.String definition code for java.lang.String getDescription sample code for javax.swing.JFileChooser.getDescription(java.io.File) definition code for javax.swing.JFileChooser.getDescription(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Returns the file description.
 String sample code for java.lang.String definition code for java.lang.String getDialogTitle sample code for javax.swing.JFileChooser.getDialogTitle() definition code for javax.swing.JFileChooser.getDialogTitle() ()
          Gets the string that goes in the JFileChooser's titlebar.
 int getDialogType sample code for javax.swing.JFileChooser.getDialogType() definition code for javax.swing.JFileChooser.getDialogType() ()
          Returns the type of this dialog.
 boolean getDragEnabled sample code for javax.swing.JFileChooser.getDragEnabled() definition code for javax.swing.JFileChooser.getDragEnabled() ()
          Gets the value of the dragEnabled property.
 FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter getFileFilter sample code for javax.swing.JFileChooser.getFileFilter() definition code for javax.swing.JFileChooser.getFileFilter() ()
          Returns the currently selected file filter.
 int getFileSelectionMode sample code for javax.swing.JFileChooser.getFileSelectionMode() definition code for javax.swing.JFileChooser.getFileSelectionMode() ()
          Returns the current file-selection mode.
 FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView getFileSystemView sample code for javax.swing.JFileChooser.getFileSystemView() definition code for javax.swing.JFileChooser.getFileSystemView() ()
          Returns the file system view.
 FileView sample code for javax.swing.filechooser.FileView definition code for javax.swing.filechooser.FileView getFileView sample code for javax.swing.JFileChooser.getFileView() definition code for javax.swing.JFileChooser.getFileView() ()
          Returns the current file view.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getIcon sample code for javax.swing.JFileChooser.getIcon(java.io.File) definition code for javax.swing.JFileChooser.getIcon(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Returns the icon for this file or type of file, depending on the system.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.swing.JFileChooser.getName(java.io.File) definition code for javax.swing.JFileChooser.getName(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Returns the filename.
 File sample code for java.io.File definition code for java.io.File getSelectedFile sample code for javax.swing.JFileChooser.getSelectedFile() definition code for javax.swing.JFileChooser.getSelectedFile() ()
          Returns the selected file.
 File sample code for java.io.File definition code for java.io.File [] getSelectedFiles sample code for javax.swing.JFileChooser.getSelectedFiles() definition code for javax.swing.JFileChooser.getSelectedFiles() ()
          Returns a list of selected files if the file chooser is set to allow multiple selection.
 String sample code for java.lang.String definition code for java.lang.String getTypeDescription sample code for javax.swing.JFileChooser.getTypeDescription(java.io.File) definition code for javax.swing.JFileChooser.getTypeDescription(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Returns the file type.
 FileChooserUI sample code for javax.swing.plaf.FileChooserUI definition code for javax.swing.plaf.FileChooserUI getUI sample code for javax.swing.JFileChooser.getUI() definition code for javax.swing.JFileChooser.getUI() ()
          Gets the UI object which implements the L&F for this component.
 String sample code for java.lang.String definition code for java.lang.String getUIClassID sample code for javax.swing.JFileChooser.getUIClassID() definition code for javax.swing.JFileChooser.getUIClassID() ()
          Returns a string that specifies the name of the L&F class that renders this component.
 boolean isAcceptAllFileFilterUsed sample code for javax.swing.JFileChooser.isAcceptAllFileFilterUsed() definition code for javax.swing.JFileChooser.isAcceptAllFileFilterUsed() ()
          Returns whether the AcceptAll FileFilter is used.
 boolean isDirectorySelectionEnabled sample code for javax.swing.JFileChooser.isDirectorySelectionEnabled() definition code for javax.swing.JFileChooser.isDirectorySelectionEnabled() ()
          Convenience call that determines if directories are selectable based on the current file selection mode.
 boolean isFileHidingEnabled sample code for javax.swing.JFileChooser.isFileHidingEnabled() definition code for javax.swing.JFileChooser.isFileHidingEnabled() ()
          Returns true if hidden files are not shown in the file chooser; otherwise, returns false.
 boolean isFileSelectionEnabled sample code for javax.swing.JFileChooser.isFileSelectionEnabled() definition code for javax.swing.JFileChooser.isFileSelectionEnabled() ()
          Convenience call that determines if files are selectable based on the current file selection mode.
 boolean isMultiSelectionEnabled sample code for javax.swing.JFileChooser.isMultiSelectionEnabled() definition code for javax.swing.JFileChooser.isMultiSelectionEnabled() ()
          Returns true if multiple files can be selected.
 boolean isTraversable sample code for javax.swing.JFileChooser.isTraversable(java.io.File) definition code for javax.swing.JFileChooser.isTraversable(java.io.File) (File sample code for java.io.File definition code for java.io.File  f)
          Returns true if the file (directory) can be visited.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JFileChooser.paramString() definition code for javax.swing.JFileChooser.paramString() ()
          Returns a string representation of this JFileChooser.
 void removeActionListener sample code for javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener) (ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
          Removes an ActionListener from the file chooser.
 boolean removeChoosableFileFilter sample code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) (FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  f)
          Removes a filter from the list of user choosable file filters.
 void rescanCurrentDirectory sample code for javax.swing.JFileChooser.rescanCurrentDirectory() definition code for javax.swing.JFileChooser.rescanCurrentDirectory() ()
          Tells the UI to rescan its files list from the current directory.
 void resetChoosableFileFilters sample code for javax.swing.JFileChooser.resetChoosableFileFilters() definition code for javax.swing.JFileChooser.resetChoosableFileFilters() ()
          Resets the choosable file filter list to its starting state.
 void setAcceptAllFileFilterUsed sample code for javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean) definition code for javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean) (boolean b)
          Determines whether the AcceptAll FileFilter is used as an available choice in the choosable filter list.
 void setAccessory sample code for javax.swing.JFileChooser.setAccessory(javax.swing.JComponent) definition code for javax.swing.JFileChooser.setAccessory(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  newAccessory)
          Sets the accessory component.
 void setApproveButtonMnemonic sample code for javax.swing.JFileChooser.setApproveButtonMnemonic(char) definition code for javax.swing.JFileChooser.setApproveButtonMnemonic(char) (char mnemonic)
          Sets the approve button's mnemonic using a character.
 void setApproveButtonMnemonic sample code for javax.swing.JFileChooser.setApproveButtonMnemonic(int) definition code for javax.swing.JFileChooser.setApproveButtonMnemonic(int) (int mnemonic)
          Sets the approve button's mnemonic using a numeric keycode.
 void setApproveButtonText sample code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  approveButtonText)
          Sets the text used in the ApproveButton in the FileChooserUI.
 void setApproveButtonToolTipText sample code for javax.swing.JFileChooser.setApproveButtonToolTipText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonToolTipText(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  toolTipText)
          Sets the tooltip text used in the ApproveButton.
 void setControlButtonsAreShown sample code for javax.swing.JFileChooser.setControlButtonsAreShown(boolean) definition code for javax.swing.JFileChooser.setControlButtonsAreShown(boolean) (boolean b)
          Sets the property that indicates whether the approve and cancel buttons are shown in the file chooser.
 void setCurrentDirectory sample code for javax.swing.JFileChooser.setCurrentDirectory(java.io.File) definition code for javax.swing.JFileChooser.setCurrentDirectory(java.io.File) (File sample code for java.io.File definition code for java.io.File  dir)
          Sets the current directory.
 void setDialogTitle sample code for javax.swing.JFileChooser.setDialogTitle(java.lang.String) definition code for javax.swing.JFileChooser.setDialogTitle(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  dialogTitle)
          Sets the string that goes in the JFileChooser window's title bar.
 void setDialogType sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int) (int dialogType)
          Sets the type of this dialog.
 void setDragEnabled sample code for javax.swing.JFileChooser.setDragEnabled(boolean) definition code for javax.swing.JFileChooser.setDragEnabled(boolean) (boolean b)
          Sets the dragEnabled property, which must be true to enable automatic drag handling (the first part of drag and drop) on this component.
 void setFileFilter sample code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter) (FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  filter)
          Sets the current file filter.
 void setFileHidingEnabled sample code for javax.swing.JFileChooser.setFileHidingEnabled(boolean) definition code for javax.swing.JFileChooser.setFileHidingEnabled(boolean) (boolean b)
          Sets file hiding on or off.
 void setFileSelectionMode sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int) (int mode)
          Sets the JFileChooser to allow the user to just select files, just select directories, or select both files and directories.
 void setFileSystemView sample code for javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView) (FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
          Sets the file system view that the JFileChooser uses for accessing and creating file system resources, such as finding the floppy drive and getting a list of root drives.
 void setFileView sample code for javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView) definition code for javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView) (FileView sample code for javax.swing.filechooser.FileView definition code for javax.swing.filechooser.FileView  fileView)
          Sets the file view to used to retrieve UI information, such as the icon that represents a file or the type description of a file.
 void setMultiSelectionEnabled sample code for javax.swing.JFileChooser.setMultiSelectionEnabled(boolean) definition code for javax.swing.JFileChooser.setMultiSelectionEnabled(boolean) (boolean b)
          Sets the file chooser to allow multiple file selections.
 void setSelectedFile sample code for javax.swing.JFileChooser.setSelectedFile(java.io.File) definition code for javax.swing.JFileChooser.setSelectedFile(java.io.File) (File sample code for java.io.File definition code for java.io.File  file)
          Sets the selected file.
 void setSelectedFiles sample code for javax.swing.JFileChooser.setSelectedFiles(java.io.File[]) definition code for javax.swing.JFileChooser.setSelectedFiles(java.io.File[]) (File sample code for java.io.File definition code for java.io.File [] selectedFiles)
          Sets the list of selected files if the file chooser is set to allow multiple selection.
protected  void setup sample code for javax.swing.JFileChooser.setup(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.setup(javax.swing.filechooser.FileSystemView) (FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  view)
          Performs common constructor initialization and setup.
 int showDialog sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) (Component sample code for java.awt.Component definition code for java.awt.Component  parent, String sample code for java.lang.String definition code for java.lang.String  approveButtonText)
          Pops a custom file chooser dialog with a custom approve button.
 int showOpenDialog sample code for javax.swing.JFileChooser.showOpenDialog(java.awt.Component) definition code for javax.swing.JFileChooser.showOpenDialog(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  parent)
          Pops up an "Open File" file chooser dialog.
 int showSaveDialog sample code for javax.swing.JFileChooser.showSaveDialog(java.awt.Component) definition code for javax.swing.JFileChooser.showSaveDialog(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  parent)
          Pops up a "Save File" file chooser dialog.
 void updateUI sample code for javax.swing.JFileChooser.updateUI() definition code for javax.swing.JFileChooser.updateUI() ()
          Resets the UI property to a value from the current look and feel.
 
Methods inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
addAncestorListener sample code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) , addNotify sample code for javax.swing.JComponent.addNotify() definition code for javax.swing.JComponent.addNotify() , addVetoableChangeListener sample code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) , computeVisibleRect sample code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) definition code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) , contains sample code for javax.swing.JComponent.contains(int, int) definition code for javax.swing.JComponent.contains(int, int) , createToolTip sample code for javax.swing.JComponent.createToolTip() definition code for javax.swing.JComponent.createToolTip() , disable sample code for javax.swing.JComponent.disable() definition code for javax.swing.JComponent.disable() , enable sample code for javax.swing.JComponent.enable() definition code for javax.swing.JComponent.enable() , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) , fireVetoableChange sample code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) , getActionForKeyStroke sample code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) , getActionMap sample code for javax.swing.JComponent.getActionMap() definition code for javax.swing.JComponent.getActionMap() , getAlignmentX sample code for javax.swing.JComponent.getAlignmentX() definition code for javax.swing.JComponent.getAlignmentX() , getAlignmentY sample code for javax.swing.JComponent.getAlignmentY() definition code for javax.swing.JComponent.getAlignmentY() , getAncestorListeners sample code for javax.swing.JComponent.getAncestorListeners() definition code for javax.swing.JComponent.getAncestorListeners() , getAutoscrolls sample code for javax.swing.JComponent.getAutoscrolls() definition code for javax.swing.JComponent.getAutoscrolls() , getBorder sample code for javax.swing.JComponent.getBorder() definition code for javax.swing.JComponent.getBorder() , getBounds sample code for javax.swing.JComponent.getBounds(java.awt.Rectangle) definition code for javax.swing.JComponent.getBounds(java.awt.Rectangle) , getClientProperty sample code for javax.swing.JComponent.getClientProperty(java.lang.Object) definition code for javax.swing.JComponent.getClientProperty(java.lang.Object) , getComponentGraphics sample code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) definition code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) , getComponentPopupMenu sample code for javax.swing.JComponent.getComponentPopupMenu() definition code for javax.swing.JComponent.getComponentPopupMenu() , getConditionForKeyStroke sample code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) , getDebugGraphicsOptions sample code for javax.swing.JComponent.getDebugGraphicsOptions() definition code for javax.swing.JComponent.getDebugGraphicsOptions() , getDefaultLocale sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale() , getFontMetrics sample code for javax.swing.JComponent.getFontMetrics(java.awt.Font) definition code for javax.swing.JComponent.getFontMetrics(java.awt.Font) , getGraphics sample code for javax.swing.JComponent.getGraphics() definition code for javax.swing.JComponent.getGraphics() , getHeight sample code for javax.swing.JComponent.getHeight() definition code for javax.swing.JComponent.getHeight() , getInheritsPopupMenu sample code for javax.swing.JComponent.getInheritsPopupMenu() definition code for javax.swing.JComponent.getInheritsPopupMenu() , getInputMap sample code for javax.swing.JComponent.getInputMap() definition code for javax.swing.JComponent.getInputMap() , getInputMap sample code for javax.swing.JComponent.getInputMap(int) definition code for javax.swing.JComponent.getInputMap(int) , getInputVerifier sample code for javax.swing.JComponent.getInputVerifier() definition code for javax.swing.JComponent.getInputVerifier() , getInsets sample code for javax.swing.JComponent.getInsets() definition code for javax.swing.JComponent.getInsets() , getInsets sample code for javax.swing.JComponent.getInsets(java.awt.Insets) definition code for javax.swing.JComponent.getInsets(java.awt.Insets) , getListeners sample code for javax.swing.JComponent.getListeners(java.lang.Class) definition code for javax.swing.JComponent.getListeners(java.lang.Class) , getLocation sample code for javax.swing.JComponent.getLocation(java.awt.Point) definition code for javax.swing.JComponent.getLocation(java.awt.Point) , getMaximumSize sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , getMinimumSize sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , getNextFocusableComponent sample code for javax.swing.JComponent.getNextFocusableComponent() definition code for javax.swing.JComponent.getNextFocusableComponent() , getPopupLocation sample code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) , getPreferredSize sample code for javax.swing.JComponent.getPreferredSize() definition code for javax.swing.JComponent.getPreferredSize() , getRegisteredKeyStrokes sample code for javax.swing.JComponent.getRegisteredKeyStrokes() definition code for javax.swing.JComponent.getRegisteredKeyStrokes() , getRootPane sample code for javax.swing.JComponent.getRootPane() definition code for javax.swing.JComponent.getRootPane() , getSize sample code for javax.swing.JComponent.getSize(java.awt.Dimension) definition code for javax.swing.JComponent.getSize(java.awt.Dimension) , getToolTipLocation sample code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) , getToolTipText sample code for javax.swing.JComponent.getToolTipText() definition code for javax.swing.JComponent.getToolTipText() , getToolTipText sample code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) , getTopLevelAncestor sample code for javax.swing.JComponent.getTopLevelAncestor() definition code for javax.swing.JComponent.getTopLevelAncestor() , getTransferHandler sample code for javax.swing.JComponent.getTransferHandler() definition code for javax.swing.JComponent.getTransferHandler() , getVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() definition code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() , getVetoableChangeListeners sample code for javax.swing.JComponent.getVetoableChangeListeners() definition code for javax.swing.JComponent.getVetoableChangeListeners() , getVisibleRect sample code for javax.swing.JComponent.getVisibleRect() definition code for javax.swing.JComponent.getVisibleRect() , getWidth sample code for javax.swing.JComponent.getWidth() definition code for javax.swing.JComponent.getWidth() , getX sample code for javax.swing.JComponent.getX() definition code for javax.swing.JComponent.getX() , getY sample code for javax.swing.JComponent.getY() definition code for javax.swing.JComponent.getY() , grabFocus sample code for javax.swing.JComponent.grabFocus() definition code for javax.swing.JComponent.grabFocus() , isDoubleBuffered sample code for javax.swing.JComponent.isDoubleBuffered() definition code for javax.swing.JComponent.isDoubleBuffered() , isLightweightComponent sample code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) definition code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) , isManagingFocus sample code for javax.swing.JComponent.isManagingFocus() definition code for javax.swing.JComponent.isManagingFocus() , isOpaque sample code for javax.swing.JComponent.isOpaque() definition code for javax.swing.JComponent.isOpaque() , isOptimizedDrawingEnabled sample code for javax.swing.JComponent.isOptimizedDrawingEnabled() definition code for javax.swing.JComponent.isOptimizedDrawingEnabled() , isPaintingTile sample code for javax.swing.JComponent.isPaintingTile() definition code for javax.swing.JComponent.isPaintingTile() , isRequestFocusEnabled sample code for javax.swing.JComponent.isRequestFocusEnabled() definition code for javax.swing.JComponent.isRequestFocusEnabled() , isValidateRoot sample code for javax.swing.JComponent.isValidateRoot() definition code for javax.swing.JComponent.isValidateRoot() , paint sample code for javax.swing.JComponent.paint(java.awt.Graphics) definition code for javax.swing.JComponent.paint(java.awt.Graphics) , paintBorder sample code for javax.swing.JComponent.paintBorder(java.awt.Graphics) definition code for javax.swing.JComponent.paintBorder(java.awt.Graphics) , paintChildren sample code for javax.swing.JComponent.paintChildren(java.awt.Graphics) definition code for javax.swing.JComponent.paintChildren(java.awt.Graphics) , paintComponent sample code for javax.swing.JComponent.paintComponent(java.awt.Graphics) definition code for javax.swing.JComponent.paintComponent(java.awt.Graphics) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(int, int, int, int) definition code for javax.swing.JComponent.paintImmediately(int, int, int, int) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) definition code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) , print sample code for javax.swing.JComponent.print(java.awt.Graphics) definition code for javax.swing.JComponent.print(java.awt.Graphics) , printAll sample code for javax.swing.JComponent.printAll(java.awt.Graphics) definition code for javax.swing.JComponent.printAll(java.awt.Graphics) , printBorder sample code for javax.swing.JComponent.printBorder(java.awt.Graphics) definition code for javax.swing.JComponent.printBorder(java.awt.Graphics) , printChildren sample code for javax.swing.JComponent.printChildren(java.awt.Graphics) definition code for javax.swing.JComponent.printChildren(java.awt.Graphics) , printComponent sample code for javax.swing.JComponent.printComponent(java.awt.Graphics) definition code for javax.swing.JComponent.printComponent(java.awt.Graphics) , processComponentKeyEvent sample code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) , processKeyBinding sample code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) definition code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) , processKeyEvent sample code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) , processMouseEvent sample code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) , processMouseMotionEvent sample code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) , putClientProperty sample code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) , removeAncestorListener sample code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) , removeNotify sample code for javax.swing.JComponent.removeNotify() definition code for javax.swing.JComponent.removeNotify() , removeVetoableChangeListener sample code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) , repaint sample code for javax.swing.JComponent.repaint(long, int, int, int, int) definition code for javax.swing.JComponent.repaint(long, int, int, int, int) , repaint sample code for javax.swing.JComponent.repaint(java.awt.Rectangle) definition code for javax.swing.JComponent.repaint(java.awt.Rectangle) , requestDefaultFocus sample code for javax.swing.JComponent.requestDefaultFocus() definition code for javax.swing.JComponent.requestDefaultFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus() definition code for javax.swing.JComponent.requestFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus(boolean) definition code for javax.swing.JComponent.requestFocus(boolean) , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow() definition code for javax.swing.JComponent.requestFocusInWindow() , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow(boolean) definition code for javax.swing.JComponent.requestFocusInWindow(boolean) , resetKeyboardActions sample code for javax.swing.JComponent.resetKeyboardActions() definition code for javax.swing.JComponent.resetKeyboardActions() , reshape sample code for javax.swing.JComponent.reshape(int, int, int, int) definition code for javax.swing.JComponent.reshape(int, int, int, int) , revalidate sample code for javax.swing.JComponent.revalidate() definition code for javax.swing.JComponent.revalidate() , scrollRectToVisible sample code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) definition code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) , setActionMap sample code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) definition code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) , setAlignmentX sample code for javax.swing.JComponent.setAlignmentX(float) definition code for javax.swing.JComponent.setAlignmentX(float) , setAlignmentY sample code for javax.swing.JComponent.setAlignmentY(float) definition code for javax.swing.JComponent.setAlignmentY(float) , setAutoscrolls sample code for javax.swing.JComponent.setAutoscrolls(boolean) definition code for javax.swing.JComponent.setAutoscrolls(boolean) , setBackground sample code for javax.swing.JComponent.setBackground(java.awt.Color) definition code for javax.swing.JComponent.setBackground(java.awt.Color) , setBorder sample code for javax.swing.JComponent.setBorder(javax.swing.border.Border) definition code for javax.swing.JComponent.setBorder(javax.swing.border.Border) , setComponentPopupMenu sample code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) definition code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) , setDebugGraphicsOptions sample code for javax.swing.JComponent.setDebugGraphicsOptions(int) definition code for javax.swing.JComponent.setDebugGraphicsOptions(int) , setDefaultLocale sample code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) definition code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) , setDoubleBuffered sample code for javax.swing.JComponent.setDoubleBuffered(boolean) definition code for javax.swing.JComponent.setDoubleBuffered(boolean) , setEnabled sample code for javax.swing.JComponent.setEnabled(boolean) definition code for javax.swing.JComponent.setEnabled(boolean) , setFocusTraversalKeys sample code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) definition code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) , setFont sample code for javax.swing.JComponent.setFont(java.awt.Font) definition code for javax.swing.JComponent.setFont(java.awt.Font) , setForeground sample code for javax.swing.JComponent.setForeground(java.awt.Color) definition code for javax.swing.JComponent.setForeground(java.awt.Color) , setInheritsPopupMenu sample code for javax.swing.JComponent.setInheritsPopupMenu(boolean) definition code for javax.swing.JComponent.setInheritsPopupMenu(boolean) , setInputMap sample code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) definition code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) , setInputVerifier sample code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) definition code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) , setMaximumSize sample code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) , setMinimumSize sample code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) , setNextFocusableComponent sample code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) definition code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) , setOpaque sample code for javax.swing.JComponent.setOpaque(boolean) definition code for javax.swing.JComponent.setOpaque(boolean) , setPreferredSize sample code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) definition code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) , setRequestFocusEnabled sample code for javax.swing.JComponent.setRequestFocusEnabled(boolean) definition code for javax.swing.JComponent.setRequestFocusEnabled(boolean) , setToolTipText sample code for javax.swing.JComponent.setToolTipText(java.lang.String) definition code for javax.swing.JComponent.setToolTipText(java.lang.String) , setTransferHandler sample code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) definition code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) , setUI sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , setVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) definition code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) , setVisible sample code for javax.swing.JComponent.setVisible(boolean) definition code for javax.swing.JComponent.setVisible(boolean) , unregisterKeyboardAction sample code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) definition code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) , update sample code for javax.swing.JComponent.update(java.awt.Graphics) definition code for javax.swing.JComponent.update(java.awt.Graphics)
 
Methods inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
add sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) , add sample code for java.awt.Container.add(java.awt.Component, int) definition code for java.awt.Container.add(java.awt.Component, int) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) , add sample code for java.awt.Container.add(java.lang.String, java.awt.Component) definition code for java.awt.Container.add(java.lang.String, java.awt.Component) , addContainerListener sample code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) , addImpl sample code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , applyComponentOrientation sample code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) , areFocusTraversalKeysSet sample code for java.awt.Container.areFocusTraversalKeysSet(int) definition code for java.awt.Container.areFocusTraversalKeysSet(int) , countComponents sample code for java.awt.Container.countComponents() definition code for java.awt.Container.countComponents() , deliverEvent sample code for java.awt.Container.deliverEvent(java.awt.Event) definition code for java.awt.Container.deliverEvent(java.awt.Event) , doLayout sample code for java.awt.Container.doLayout() definition code for java.awt.Container.doLayout() , findComponentAt sample code for java.awt.Container.findComponentAt(int, int) definition code for java.awt.Container.findComponentAt(int, int) , findComponentAt sample code for java.awt.Container.findComponentAt(java.awt.Point) definition code for java.awt.Container.findComponentAt(java.awt.Point) , getComponent sample code for java.awt.Container.getComponent(int) definition code for java.awt.Container.getComponent(int) , getComponentAt sample code for java.awt.Container.getComponentAt(int, int) definition code for java.awt.Container.getComponentAt(int, int) , getComponentAt sample code for java.awt.Container.getComponentAt(java.awt.Point) definition code for java.awt.Container.getComponentAt(java.awt.Point) , getComponentCount sample code for java.awt.Container.getComponentCount() definition code for java.awt.Container.getComponentCount() , getComponents sample code for java.awt.Container.getComponents() definition code for java.awt.Container.getComponents() , getComponentZOrder sample code for java.awt.Container.getComponentZOrder(java.awt.Component) definition code for java.awt.Container.getComponentZOrder(java.awt.Component) , getContainerListeners sample code for java.awt.Container.getContainerListeners() definition code for java.awt.Container.getContainerListeners() , getFocusTraversalKeys sample code for java.awt.Container.getFocusTraversalKeys(int) definition code for java.awt.Container.getFocusTraversalKeys(int) , getFocusTraversalPolicy sample code for java.awt.Container.getFocusTraversalPolicy() definition code for java.awt.Container.getFocusTraversalPolicy() , getLayout sample code for java.awt.Container.getLayout() definition code for java.awt.Container.getLayout() , getMousePosition sample code for java.awt.Container.getMousePosition(boolean) definition code for java.awt.Container.getMousePosition(boolean) , insets sample code for java.awt.Container.insets() definition code for java.awt.Container.insets() , invalidate sample code for java.awt.Container.invalidate() definition code for java.awt.Container.invalidate() , isAncestorOf sample code for java.awt.Container.isAncestorOf(java.awt.Component) definition code for java.awt.Container.isAncestorOf(java.awt.Component) , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot() definition code for java.awt.Container.isFocusCycleRoot() , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot(java.awt.Container) definition code for java.awt.Container.isFocusCycleRoot(java.awt.Container) , isFocusTraversalPolicyProvider sample code for java.awt.Container.isFocusTraversalPolicyProvider() definition code for java.awt.Container.isFocusTraversalPolicyProvider() , isFocusTraversalPolicySet sample code for java.awt.Container.isFocusTraversalPolicySet() definition code for java.awt.Container.isFocusTraversalPolicySet() , layout sample code for java.awt.Container.layout() definition code for java.awt.Container.layout() , list sample code for java.awt.Container.list(java.io.PrintStream, int) definition code for java.awt.Container.list(java.io.PrintStream, int) , list sample code for java.awt.Container.list(java.io.PrintWriter, int) definition code for java.awt.Container.list(java.io.PrintWriter, int) , locate sample code for java.awt.Container.locate(int, int) definition code for java.awt.Container.locate(int, int) , minimumSize sample code for java.awt.Container.minimumSize() definition code for java.awt.Container.minimumSize() , paintComponents sample code for java.awt.Container.paintComponents(java.awt.Graphics) definition code for java.awt.Container.paintComponents(java.awt.Graphics) , preferredSize sample code for java.awt.Container.preferredSize() definition code for java.awt.Container.preferredSize() , printComponents sample code for java.awt.Container.printComponents(java.awt.Graphics) definition code for java.awt.Container.printComponents(java.awt.Graphics) , processContainerEvent sample code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) definition code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) , processEvent sample code for java.awt.Container.processEvent(java.awt.AWTEvent) definition code for java.awt.Container.processEvent(java.awt.AWTEvent) , remove sample code for java.awt.Container.remove(java.awt.Component) definition code for java.awt.Container.remove(java.awt.Component) , remove sample code for java.awt.Container.remove(int) definition code for java.awt.Container.remove(int) , removeAll sample code for java.awt.Container.removeAll() definition code for java.awt.Container.removeAll() , removeContainerListener sample code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) , setComponentZOrder sample code for java.awt.Container.setComponentZOrder(java.awt.Component, int) definition code for java.awt.Container.setComponentZOrder(java.awt.Component, int) , setFocusCycleRoot sample code for java.awt.Container.setFocusCycleRoot(boolean) definition code for java.awt.Container.setFocusCycleRoot(boolean) , setFocusTraversalPolicy sample code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) definition code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) , setFocusTraversalPolicyProvider sample code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) definition code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) , setLayout sample code for java.awt.Container.setLayout(java.awt.LayoutManager) definition code for java.awt.Container.setLayout(java.awt.LayoutManager) , transferFocusBackward sample code for java.awt.Container.transferFocusBackward() definition code for java.awt.Container.transferFocusBackward() , transferFocusDownCycle sample code for java.awt.Container.transferFocusDownCycle() definition code for java.awt.Container.transferFocusDownCycle() , validate sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , validateTree sample code for java.awt.Container.validateTree() definition code for java.awt.Container.validateTree()
 
Methods inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
action sample code for java.awt.Component.action(java.awt.Event, java.lang.Object) definition code for java.awt.Component.action(java.awt.Event, java.lang.Object) , add sample code for java.awt.Component.add(java.awt.PopupMenu) definition code for java.awt.Component.add(java.awt.PopupMenu) , addComponentListener sample code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) , addFocusListener sample code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) , addHierarchyBoundsListener sample code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , addHierarchyListener sample code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) , addInputMethodListener sample code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) , addKeyListener sample code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) , addMouseListener sample code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) , addMouseMotionListener sample code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) , addMouseWheelListener sample code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) , bounds sample code for java.awt.Component.bounds() definition code for java.awt.Component.bounds() , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , coalesceEvents sample code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) definition code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) , contains sample code for java.awt.Component.contains(java.awt.Point) definition code for java.awt.Component.contains(java.awt.Point) , createImage sample code for java.awt.Component.createImage(java.awt.image.ImageProducer) definition code for java.awt.Component.createImage(java.awt.image.ImageProducer) , createImage sample code for java.awt.Component.createImage(int, int) definition code for java.awt.Component.createImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int) definition code for java.awt.Component.createVolatileImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) definition code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) , disableEvents sample code for java.awt.Component.disableEvents(long) definition code for java.awt.Component.disableEvents(long) , dispatchEvent sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) , enable sample code for java.awt.Component.enable(boolean) definition code for java.awt.Component.enable(boolean) , enableEvents sample code for java.awt.Component.enableEvents(long) definition code for java.awt.Component.enableEvents(long) , enableInputMethods sample code for java.awt.Component.enableInputMethods(boolean) definition code for java.awt.Component.enableInputMethods(boolean) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) definition code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, double, double) definition code for java.awt.Component.firePropertyChange(java.lang.String, double, double) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, float, float) definition code for java.awt.Component.firePropertyChange(java.lang.String, float, float) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, long, long) definition code for java.awt.Component.firePropertyChange(java.lang.String, long, long) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, short, short) definition code for java.awt.Component.firePropertyChange(java.lang.String, short, short) , getBackground sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground() , getBounds sample code for java.awt.Component.getBounds() definition code for java.awt.Component.getBounds() , getColorModel sample code for java.awt.Component.getColorModel() definition code for java.awt.Component.getColorModel() , getComponentListeners sample code for java.awt.Component.getComponentListeners() definition code for java.awt.Component.getComponentListeners() , getComponentOrientation sample code for java.awt.Component.getComponentOrientation() definition code for java.awt.Component.getComponentOrientation() , getCursor sample code for java.awt.Component.getCursor() definition code for java.awt.Component.getCursor() , getDropTarget sample code for java.awt.Component.getDropTarget() definition code for java.awt.Component.getDropTarget() , getFocusCycleRootAncestor sample code for java.awt.Component.getFocusCycleRootAncestor() definition code for java.awt.Component.getFocusCycleRootAncestor() , getFocusListeners sample code for java.awt.Component.getFocusListeners() definition code for java.awt.Component.getFocusListeners() , getFocusTraversalKeysEnabled sample code for java.awt.Component.getFocusTraversalKeysEnabled() definition code for java.awt.Component.getFocusTraversalKeysEnabled() , getFont sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont() , getForeground sample code for java.awt.Component.getForeground() definition code for java.awt.Component.getForeground() , getGraphicsConfiguration sample code for java.awt.Component.getGraphicsConfiguration() definition code for java.awt.Component.getGraphicsConfiguration() , getHierarchyBoundsListeners sample code for java.awt.Component.getHierarchyBoundsListeners() definition code for java.awt.Component.getHierarchyBoundsListeners() , getHierarchyListeners sample code for java.awt.Component.getHierarchyListeners() definition code for java.awt.Component.getHierarchyListeners() , getIgnoreRepaint sample code for java.awt.Component.getIgnoreRepaint() definition code for java.awt.Component.getIgnoreRepaint() , getInputContext sample code for java.awt.Component.getInputContext() definition code for java.awt.Component.getInputContext() , getInputMethodListeners sample code for java.awt.Component.getInputMethodListeners() definition code for java.awt.Component.getInputMethodListeners() , getInputMethodRequests sample code for java.awt.Component.getInputMethodRequests() definition code for java.awt.Component.getInputMethodRequests() , getKeyListeners sample code for java.awt.Component.getKeyListeners() definition code for java.awt.Component.getKeyListeners() , getLocale sample code for java.awt.Component.getLocale() definition code for java.awt.Component.getLocale() , getLocation sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation() , getLocationOnScreen sample code for java.awt.Component.getLocationOnScreen() definition code for java.awt.Component.getLocationOnScreen() , getMouseListeners sample code for java.awt.Component.getMouseListeners() definition code for java.awt.Component.getMouseListeners() , getMouseMotionListeners sample code for java.awt.Component.getMouseMotionListeners() definition code for java.awt.Component.getMouseMotionListeners() , getMousePosition sample code for java.awt.Component.getMousePosition() definition code for java.awt.Component.getMousePosition() , getMouseWheelListeners sample code for java.awt.Component.getMouseWheelListeners() definition code for java.awt.Component.getMouseWheelListeners() , getName sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , getParent sample code for java.awt.Component.getParent() definition code for java.awt.Component.getParent() , getPeer sample code for java.awt.Component.getPeer() definition code for java.awt.Component.getPeer() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners() definition code for java.awt.Component.getPropertyChangeListeners() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners(java.lang.String) definition code for java.awt.Component.getPropertyChangeListeners(java.lang.String) , getSize sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize() , getToolkit sample code for java.awt.Component.getToolkit() definition code for java.awt.Component.getToolkit() , getTreeLock sample code for java.awt.Component.getTreeLock() definition code for java.awt.Component.getTreeLock() , gotFocus sample code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) , handleEvent sample code for java.awt.Component.handleEvent(java.awt.Event) definition code for java.awt.Component.handleEvent(java.awt.Event) , hasFocus sample code for java.awt.Component.hasFocus() definition code for java.awt.Component.hasFocus() , hide sample code for java.awt.Component.hide() definition code for java.awt.Component.hide() , imageUpdate sample code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) , inside sample code for java.awt.Component.inside(int, int) definition code for java.awt.Component.inside(int, int) , isBackgroundSet sample code for java.awt.Component.isBackgroundSet() definition code for java.awt.Component.isBackgroundSet() , isCursorSet sample code for java.awt.Component.isCursorSet() definition code for java.awt.Component.isCursorSet() , isDisplayable sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable() , isEnabled sample code for java.awt.Component.isEnabled() definition code for java.awt.Component.isEnabled() , isFocusable sample code for java.awt.Component.isFocusable() definition code for java.awt.Component.isFocusable() , isFocusOwner sample code for java.awt.Component.isFocusOwner() definition code for java.awt.Component.isFocusOwner() , isFocusTraversable sample code for java.awt.Component.isFocusTraversable() definition code for java.awt.Component.isFocusTraversable() , isFontSet sample code for java.awt.Component.isFontSet() definition code for java.awt.Component.isFontSet() , isForegroundSet sample code for java.awt.Component.isForegroundSet() definition code for java.awt.Component.isForegroundSet() , isLightweight sample code for java.awt.Component.isLightweight() definition code for java.awt.Component.isLightweight() , isMaximumSizeSet sample code for java.awt.Component.isMaximumSizeSet() definition code for java.awt.Component.isMaximumSizeSet() , isMinimumSizeSet sample code for java.awt.Component.isMinimumSizeSet() definition code for java.awt.Component.isMinimumSizeSet() , isPreferredSizeSet sample code for java.awt.Component.isPreferredSizeSet() definition code for java.awt.Component.isPreferredSizeSet() , isShowing sample code for java.awt.Component.isShowing() definition code for java.awt.Component.isShowing() , isValid sample code for java.awt.Component.isValid() definition code for java.awt.Component.isValid() , isVisible sample code for java.awt.Component.isVisible() definition code for java.awt.Component.isVisible() , keyDown sample code for java.awt.Component.keyDown(java.awt.Event, int) definition code for java.awt.Component.keyDown(java.awt.Event, int) , keyUp sample code for java.awt.Component.keyUp(java.awt.Event, int) definition code for java.awt.Component.keyUp(java.awt.Event, int) , list sample code for java.awt.Component.list() definition code for java.awt.Component.list() , list sample code for java.awt.Component.list(java.io.PrintStream) definition code for java.awt.Component.list(java.io.PrintStream) , list sample code for java.awt.Component.list(java.io.PrintWriter) definition code for java.awt.Component.list(java.io.PrintWriter) , location sample code for java.awt.Component.location() definition code for java.awt.Component.location() , lostFocus sample code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) , mouseDown sample code for java.awt.Component.mouseDown(java.awt.Event, int, int) definition code for java.awt.Component.mouseDown(java.awt.Event, int, int) , mouseDrag sample code for java.awt.Component.mouseDrag(java.awt.Event, int, int) definition code for java.awt.Component.mouseDrag(java.awt.Event, int, int) , mouseEnter sample code for java.awt.Component.mouseEnter(java.awt.Event, int, int) definition code for java.awt.Component.mouseEnter(java.awt.Event, int, int) , mouseExit sample code for java.awt.Component.mouseExit(java.awt.Event, int, int) definition code for java.awt.Component.mouseExit(java.awt.Event, int, int) , mouseMove sample code for java.awt.Component.mouseMove(java.awt.Event, int, int) definition code for java.awt.Component.mouseMove(java.awt.Event, int, int) , mouseUp sample code for java.awt.Component.mouseUp(java.awt.Event, int, int) definition code for java.awt.Component.mouseUp(java.awt.Event, int, int) , move sample code for java.awt.Component.move(int, int) definition code for java.awt.Component.move(int, int) , nextFocus sample code for java.awt.Component.nextFocus() definition code for java.awt.Component.nextFocus() , paintAll sample code for java.awt.Component.paintAll(java.awt.Graphics) definition code for java.awt.Component.paintAll(java.awt.Graphics) , postEvent sample code for java.awt.Component.postEvent(java.awt.Event) definition code for java.awt.Component.postEvent(java.awt.Event) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , processComponentEvent sample code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) definition code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) , processFocusEvent sample code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) definition code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) , processHierarchyBoundsEvent sample code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) , processHierarchyEvent sample code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) , processInputMethodEvent sample code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) definition code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) , processMouseWheelEvent sample code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) definition code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) , remove sample code for java.awt.Component.remove(java.awt.MenuComponent) definition code for java.awt.Component.remove(java.awt.MenuComponent) , removeComponentListener sample code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) , removeFocusListener sample code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) , removeHierarchyBoundsListener sample code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , removeHierarchyListener sample code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) , removeInputMethodListener sample code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) , removeKeyListener sample code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) , removeMouseListener sample code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) , removeMouseMotionListener sample code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) , removeMouseWheelListener sample code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , repaint sample code for java.awt.Component.repaint() definition code for java.awt.Component.repaint() , repaint sample code for java.awt.Component.repaint(int, int, int, int) definition code for java.awt.Component.repaint(int, int, int, int) , repaint sample code for java.awt.Component.repaint(long) definition code for java.awt.Component.repaint(long) , resize sample code for java.awt.Component.resize(java.awt.Dimension) definition code for java.awt.Component.resize(java.awt.Dimension) , resize sample code for java.awt.Component.resize(int, int) definition code for java.awt.Component.resize(int, int) , setBounds sample code for java.awt.Component.setBounds(int, int, int, int) definition code for java.awt.Component.setBounds(int, int, int, int) , setBounds sample code for java.awt.Component.setBounds(java.awt.Rectangle) definition code for java.awt.Component.setBounds(java.awt.Rectangle) , setComponentOrientation sample code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) , setCursor sample code for java.awt.Component.setCursor(java.awt.Cursor) definition code for java.awt.Component.setCursor(java.awt.Cursor) , setDropTarget sample code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) definition code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) , setFocusable sample code for java.awt.Component.setFocusable(boolean) definition code for java.awt.Component.setFocusable(boolean) , setFocusTraversalKeysEnabled sample code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) definition code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) , setIgnoreRepaint sample code for java.awt.Component.setIgnoreRepaint(boolean) definition code for java.awt.Component.setIgnoreRepaint(boolean) , setLocale sample code for java.awt.Component.setLocale(java.util.Locale) definition code for java.awt.Component.setLocale(java.util.Locale) , setLocation sample code for java.awt.Component.setLocation(int, int) definition code for java.awt.Component.setLocation(int, int) , setLocation sample code for java.awt.Component.setLocation(java.awt.Point) definition code for java.awt.Component.setLocation(java.awt.Point) , setName sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String) , setSize sample code for java.awt.Component.setSize(java.awt.Dimension) definition code for java.awt.Component.setSize(java.awt.Dimension) , setSize sample code for java.awt.Component.setSize(int, int) definition code for java.awt.Component.setSize(int, int) , show sample code for java.awt.Component.show() definition code for java.awt.Component.show() , show sample code for java.awt.Component.show(boolean) definition code for java.awt.Component.show(boolean) , size sample code for java.awt.Component.size() definition code for java.awt.Component.size() , toString sample code for java.awt.Component.toString() definition code for java.awt.Component.toString() , transferFocus sample code for java.awt.Component.transferFocus() definition code for java.awt.Component.transferFocus() , transferFocusUpCycle sample code for java.awt.Component.transferFocusUpCycle() definition code for java.awt.Component.transferFocusUpCycle()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

OPEN_DIALOG sample code for javax.swing.JFileChooser.OPEN_DIALOG

public static final int OPEN_DIALOG
Type value indicating that the JFileChooser supports an "Open" file operation.

See Also:
Constant Field Values

SAVE_DIALOG sample code for javax.swing.JFileChooser.SAVE_DIALOG

public static final int SAVE_DIALOG
Type value indicating that the JFileChooser supports a "Save" file operation.

See Also:
Constant Field Values

CUSTOM_DIALOG sample code for javax.swing.JFileChooser.CUSTOM_DIALOG

public static final int CUSTOM_DIALOG
Type value indicating that the JFileChooser supports a developer-specified file operation.

See Also:
Constant Field Values

CANCEL_OPTION sample code for javax.swing.JFileChooser.CANCEL_OPTION

public static final int CANCEL_OPTION
Return value if cancel is chosen.

See Also:
Constant Field Values

APPROVE_OPTION sample code for javax.swing.JFileChooser.APPROVE_OPTION

public static final int APPROVE_OPTION
Return value if approve (yes, ok) is chosen.

See Also:
Constant Field Values

ERROR_OPTION sample code for javax.swing.JFileChooser.ERROR_OPTION

public static final int ERROR_OPTION
Return value if an error occured.

See Also:
Constant Field Values

FILES_ONLY sample code for javax.swing.JFileChooser.FILES_ONLY

public static final int FILES_ONLY
Instruction to display only files.

See Also:
Constant Field Values

DIRECTORIES_ONLY sample code for javax.swing.JFileChooser.DIRECTORIES_ONLY

public static final int DIRECTORIES_ONLY
Instruction to display only directories.

See Also:
Constant Field Values

FILES_AND_DIRECTORIES sample code for javax.swing.JFileChooser.FILES_AND_DIRECTORIES

public static final int FILES_AND_DIRECTORIES
Instruction to display both files and directories.

See Also:
Constant Field Values

CANCEL_SELECTION sample code for javax.swing.JFileChooser.CANCEL_SELECTION

public static final String sample code for java.lang.String definition code for java.lang.String  CANCEL_SELECTION
Instruction to cancel the current selection.

See Also:
Constant Field Values

APPROVE_SELECTION sample code for javax.swing.JFileChooser.APPROVE_SELECTION

public static final String sample code for java.lang.String definition code for java.lang.String  APPROVE_SELECTION
Instruction to approve the current selection (same as pressing yes or ok).

See Also:
Constant Field Values

APPROVE_BUTTON_TEXT_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  APPROVE_BUTTON_TEXT_CHANGED_PROPERTY
Identifies change in the text on the approve (yes, ok) button.

See Also:
Constant Field Values

APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY
Identifies change in the tooltip text for the approve (yes, ok) button.

See Also:
Constant Field Values

APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
Identifies change in the mnemonic for the approve (yes, ok) button.

See Also:
Constant Field Values

CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
Instruction to display the control buttons.

See Also:
Constant Field Values

DIRECTORY_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.DIRECTORY_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  DIRECTORY_CHANGED_PROPERTY
Identifies user's directory change.

See Also:
Constant Field Values

SELECTED_FILE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.SELECTED_FILE_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  SELECTED_FILE_CHANGED_PROPERTY
Identifies change in user's single-file selection.

See Also:
Constant Field Values

SELECTED_FILES_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.SELECTED_FILES_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  SELECTED_FILES_CHANGED_PROPERTY
Identifies change in user's multiple-file selection.

See Also:
Constant Field Values

MULTI_SELECTION_ENABLED_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
Enables multiple-file selections.

See Also:
Constant Field Values

FILE_SYSTEM_VIEW_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_SYSTEM_VIEW_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FILE_SYSTEM_VIEW_CHANGED_PROPERTY
Says that a different object is being used to find available drives on the system.

See Also:
Constant Field Values

FILE_VIEW_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_VIEW_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FILE_VIEW_CHANGED_PROPERTY
Says that a different object is being used to retrieve file information.

See Also:
Constant Field Values

FILE_HIDING_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_HIDING_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FILE_HIDING_CHANGED_PROPERTY
Identifies a change in the display-hidden-files property.

See Also:
Constant Field Values

FILE_FILTER_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_FILTER_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FILE_FILTER_CHANGED_PROPERTY
User changed the kind of files to display.

See Also:
Constant Field Values

FILE_SELECTION_MODE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.FILE_SELECTION_MODE_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  FILE_SELECTION_MODE_CHANGED_PROPERTY
Identifies a change in the kind of selection (single, multiple, etc.).

See Also:
Constant Field Values

ACCESSORY_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.ACCESSORY_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  ACCESSORY_CHANGED_PROPERTY
Says that a different accessory component is in use (for example, to preview files).

See Also:
Constant Field Values

ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
Identifies whether a the AcceptAllFileFilter is used or not.

See Also:
Constant Field Values

DIALOG_TITLE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  DIALOG_TITLE_CHANGED_PROPERTY
Identifies a change in the dialog title.

See Also:
Constant Field Values

DIALOG_TYPE_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  DIALOG_TYPE_CHANGED_PROPERTY
Identifies a change in the type of files displayed (files only, directories only, or both files and directories).

See Also:
Constant Field Values

CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY

public static final String sample code for java.lang.String definition code for java.lang.String  CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY
Identifies a change in the list of predefined file filters the user can choose from.

See Also:
Constant Field Values

accessibleContext sample code for javax.swing.JFileChooser.accessibleContext

protected AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  accessibleContext
Constructor Detail

JFileChooser sample code for javax.swing.JFileChooser() definition code for javax.swing.JFileChooser()

public JFileChooser()
Constructs a JFileChooser pointing to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.


JFileChooser sample code for javax.swing.JFileChooser(java.lang.String) definition code for javax.swing.JFileChooser(java.lang.String)

public JFileChooser(String sample code for java.lang.String definition code for java.lang.String  currentDirectoryPath)
Constructs a JFileChooser using the given path. Passing in a null string causes the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.

Parameters:
currentDirectoryPath - a String giving the path to a file or directory

JFileChooser sample code for javax.swing.JFileChooser(java.io.File) definition code for javax.swing.JFileChooser(java.io.File)

public JFileChooser(File sample code for java.io.File definition code for java.io.File  currentDirectory)
Constructs a JFileChooser using the given File as the path. Passing in a null file causes the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.

Parameters:
currentDirectory - a File object specifying the path to a file or directory

JFileChooser sample code for javax.swing.JFileChooser(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser(javax.swing.filechooser.FileSystemView)

public JFileChooser(FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
Constructs a JFileChooser using the given FileSystemView.


JFileChooser sample code for javax.swing.JFileChooser(java.io.File, javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser(java.io.File, javax.swing.filechooser.FileSystemView)

public JFileChooser(File sample code for java.io.File definition code for java.io.File  currentDirectory,
                    FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
Constructs a JFileChooser using the given current directory and FileSystemView.


JFileChooser sample code for javax.swing.JFileChooser(java.lang.String, javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser(java.lang.String, javax.swing.filechooser.FileSystemView)

public JFileChooser(String sample code for java.lang.String definition code for java.lang.String  currentDirectoryPath,
                    FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
Constructs a JFileChooser using the given current directory path and FileSystemView.

Method Detail

setup sample code for javax.swing.JFileChooser.setup(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.setup(javax.swing.filechooser.FileSystemView)

protected void setup(FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  view)
Performs common constructor initialization and setup.


setDragEnabled sample code for javax.swing.JFileChooser.setDragEnabled(boolean) definition code for javax.swing.JFileChooser.setDragEnabled(boolean)

public void setDragEnabled(boolean b)
Sets the dragEnabled property, which must be true to enable automatic drag handling (the first part of drag and drop) on this component. The transferHandler property needs to be set to a non-null value for the drag to do anything. The default value of the dragEnabled property is false.

When automatic drag handling is enabled, most look and feels begin a drag-and-drop operation whenever the user presses the mouse button over a selection and then moves the mouse a few pixels. Setting this property to true can therefore have a subtle effect on how selections behave.

Some look and feels might not support automatic drag and drop; they will ignore this property. You can work around such look and feels by modifying the component to directly call the exportAsDrag method of a TransferHandler.

Parameters:
b - the value to set the dragEnabled property to
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if b is true and GraphicsEnvironment.isHeadless() returns true
Since:
1.4
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , getDragEnabled() sample code for javax.swing.JFileChooser.getDragEnabled() definition code for javax.swing.JFileChooser.getDragEnabled() , JComponent.setTransferHandler(javax.swing.TransferHandler) sample code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) definition code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) , TransferHandler sample code for javax.swing.TransferHandler definition code for javax.swing.TransferHandler

getDragEnabled sample code for javax.swing.JFileChooser.getDragEnabled() definition code for javax.swing.JFileChooser.getDragEnabled()

public boolean getDragEnabled()
Gets the value of the dragEnabled property.

Returns:
the value of the dragEnabled property
Since:
1.4
See Also:
setDragEnabled(boolean) sample code for javax.swing.JFileChooser.setDragEnabled(boolean) definition code for javax.swing.JFileChooser.setDragEnabled(boolean)

getSelectedFile sample code for javax.swing.JFileChooser.getSelectedFile() definition code for javax.swing.JFileChooser.getSelectedFile()

public File sample code for java.io.File definition code for java.io.File  getSelectedFile()
Returns the selected file. This can be set either by the programmer via setFile or by a user action, such as either typing the filename into the UI or selecting the file from a list in the UI.

Returns:
the selected file
See Also:
setSelectedFile(java.io.File) sample code for javax.swing.JFileChooser.setSelectedFile(java.io.File) definition code for javax.swing.JFileChooser.setSelectedFile(java.io.File)

setSelectedFile sample code for javax.swing.JFileChooser.setSelectedFile(java.io.File) definition code for javax.swing.JFileChooser.setSelectedFile(java.io.File)

public void setSelectedFile(File sample code for java.io.File definition code for java.io.File  file)
Sets the selected file. If the file's parent directory is not the current directory, changes the current directory to be the file's parent directory.

Parameters:
file - the selected file
See Also:
getSelectedFile() sample code for javax.swing.JFileChooser.getSelectedFile() definition code for javax.swing.JFileChooser.getSelectedFile()

getSelectedFiles sample code for javax.swing.JFileChooser.getSelectedFiles() definition code for javax.swing.JFileChooser.getSelectedFiles()

public File sample code for java.io.File definition code for java.io.File [] getSelectedFiles()
Returns a list of selected files if the file chooser is set to allow multiple selection.


setSelectedFiles sample code for javax.swing.JFileChooser.setSelectedFiles(java.io.File[]) definition code for javax.swing.JFileChooser.setSelectedFiles(java.io.File[])

public void setSelectedFiles(File sample code for java.io.File definition code for java.io.File [] selectedFiles)
Sets the list of selected files if the file chooser is set to allow multiple selection.


getCurrentDirectory sample code for javax.swing.JFileChooser.getCurrentDirectory() definition code for javax.swing.JFileChooser.getCurrentDirectory()

public File sample code for java.io.File definition code for java.io.File  getCurrentDirectory()
Returns the current directory.

Returns:
the current directory
See Also:
setCurrentDirectory(java.io.File) sample code for javax.swing.JFileChooser.setCurrentDirectory(java.io.File) definition code for javax.swing.JFileChooser.setCurrentDirectory(java.io.File)

setCurrentDirectory sample code for javax.swing.JFileChooser.setCurrentDirectory(java.io.File) definition code for javax.swing.JFileChooser.setCurrentDirectory(java.io.File)

public void setCurrentDirectory(File sample code for java.io.File definition code for java.io.File  dir)
Sets the current directory. Passing in null sets the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix. If the file passed in as currentDirectory is not a directory, the parent of the file will be used as the currentDirectory. If the parent is not traversable, then it will walk up the parent tree until it finds a traversable directory, or hits the root of the file system.

Parameters:
dir - the current directory to point to
See Also:
getCurrentDirectory() sample code for javax.swing.JFileChooser.getCurrentDirectory() definition code for javax.swing.JFileChooser.getCurrentDirectory()

changeToParentDirectory sample code for javax.swing.JFileChooser.changeToParentDirectory() definition code for javax.swing.JFileChooser.changeToParentDirectory()

public void changeToParentDirectory()
Changes the directory to be set to the parent of the current directory.

See Also:
getCurrentDirectory() sample code for javax.swing.JFileChooser.getCurrentDirectory() definition code for javax.swing.JFileChooser.getCurrentDirectory()

rescanCurrentDirectory sample code for javax.swing.JFileChooser.rescanCurrentDirectory() definition code for javax.swing.JFileChooser.rescanCurrentDirectory()

public void rescanCurrentDirectory()
Tells the UI to rescan its files list from the current directory.


ensureFileIsVisible sample code for javax.swing.JFileChooser.ensureFileIsVisible(java.io.File) definition code for javax.swing.JFileChooser.ensureFileIsVisible(java.io.File)

public void ensureFileIsVisible(File sample code for java.io.File definition code for java.io.File  f)
Makes sure that the specified file is viewable, and not hidden.

Parameters:
f - a File object

showOpenDialog sample code for javax.swing.JFileChooser.showOpenDialog(java.awt.Component) definition code for javax.swing.JFileChooser.showOpenDialog(java.awt.Component)

public int showOpenDialog(Component sample code for java.awt.Component definition code for java.awt.Component  parent)
                   throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Pops up an "Open File" file chooser dialog. Note that the text that appears in the approve button is determined by the L&F.

Parameters:
parent - the parent component of the dialog, can be null; see showDialog for details
Returns:
the return state of the file chooser on popdown:
  • JFileChooser.CANCEL_OPTION
  • JFileChooser.APPROVE_OPTION
  • JFileCHooser.ERROR_OPTION if an error occurs or the dialog is dismissed
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , showDialog(java.awt.Component, java.lang.String) sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

showSaveDialog sample code for javax.swing.JFileChooser.showSaveDialog(java.awt.Component) definition code for javax.swing.JFileChooser.showSaveDialog(java.awt.Component)

public int showSaveDialog(Component sample code for java.awt.Component definition code for java.awt.Component  parent)
                   throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Pops up a "Save File" file chooser dialog. Note that the text that appears in the approve button is determined by the L&F.

Parameters:
parent - the parent component of the dialog, can be null; see showDialog for details
Returns:
the return state of the file chooser on popdown:
  • JFileChooser.CANCEL_OPTION
  • JFileChooser.APPROVE_OPTION
  • JFileCHooser.ERROR_OPTION if an error occurs or the dialog is dismissed
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , showDialog(java.awt.Component, java.lang.String) sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

showDialog sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

public int showDialog(Component sample code for java.awt.Component definition code for java.awt.Component  parent,
                      String sample code for java.lang.String definition code for java.lang.String  approveButtonText)
               throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Pops a custom file chooser dialog with a custom approve button. For example, the following code pops up a file chooser with a "Run Application" button (instead of the normal "Save" or "Open" button):
 filechooser.showDialog(parentFrame, "Run Application");
 
Alternatively, the following code does the same thing:
    JFileChooser chooser = new JFileChooser(null);
    chooser.setApproveButtonText("Run Application");
    chooser.showDialog(parentFrame, null);
 

The parent argument determines two things: the frame on which the open dialog depends and the component whose position the look and feel should consider when placing the dialog. If the parent is a Frame object (such as a JFrame) then the dialog depends on the frame and the look and feel positions the dialog relative to the frame (for example, centered over the frame). If the parent is a component, then the dialog depends on the frame containing the component, and is positioned relative to the component (for example, centered over the component). If the parent is null, then the dialog depends on no visible window, and it's placed in a look-and-feel-dependent position such as the center of the screen.

Parameters:
parent - the parent component of the dialog; can be null
approveButtonText - the text of the ApproveButton
Returns:
the return state of the file chooser on popdown:
  • JFileChooser.CANCEL_OPTION
  • JFileChooser.APPROVE_OPTION
  • JFileCHooser.ERROR_OPTION if an error occurs or the dialog is dismissed
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()

createDialog sample code for javax.swing.JFileChooser.createDialog(java.awt.Component) definition code for javax.swing.JFileChooser.createDialog(java.awt.Component)

protected JDialog sample code for javax.swing.JDialog definition code for javax.swing.JDialog  createDialog(Component sample code for java.awt.Component definition code for java.awt.Component  parent)
                        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates and returns a new JDialog wrapping this centered on the parent in the parent's frame. This method can be overriden to further manipulate the dialog, to disable resizing, set the location, etc. Example:
     class MyFileChooser extends JFileChooser {
         protected JDialog createDialog(Component parent) throws HeadlessException {
             JDialog dialog = super.createDialog(parent);
             dialog.setLocation(300, 200);
             dialog.setResizable(false);
             return dialog;
         }
     }
 

Parameters:
parent - the parent component of the dialog; can be null
Returns:
a new JDialog containing this instance
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
Since:
1.4
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()

getControlButtonsAreShown sample code for javax.swing.JFileChooser.getControlButtonsAreShown() definition code for javax.swing.JFileChooser.getControlButtonsAreShown()

public boolean getControlButtonsAreShown()
Returns the value of the controlButtonsAreShown property.

Returns:
the value of the controlButtonsAreShown property
Since:
1.3
See Also:
setControlButtonsAreShown(boolean) sample code for javax.swing.JFileChooser.setControlButtonsAreShown(boolean) definition code for javax.swing.JFileChooser.setControlButtonsAreShown(boolean)

setControlButtonsAreShown sample code for javax.swing.JFileChooser.setControlButtonsAreShown(boolean) definition code for javax.swing.JFileChooser.setControlButtonsAreShown(boolean)

public void setControlButtonsAreShown(boolean b)
Sets the property that indicates whether the approve and cancel buttons are shown in the file chooser. This property is true by default. Look and feels that always show these buttons will ignore the value of this property. This method fires a property-changed event, using the string value of CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY as the name of the property.

Parameters:
b - false if control buttons should not be shown; otherwise, true
Since:
1.3
See Also:
getControlButtonsAreShown() sample code for javax.swing.JFileChooser.getControlButtonsAreShown() definition code for javax.swing.JFileChooser.getControlButtonsAreShown() , CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY sample code for javax.swing.JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY definition code for javax.swing.JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY

getDialogType sample code for javax.swing.JFileChooser.getDialogType() definition code for javax.swing.JFileChooser.getDialogType()

public int getDialogType()
Returns the type of this dialog. The default is JFileChooser.OPEN_DIALOG.

Returns:
the type of dialog to be displayed:
  • JFileChooser.OPEN_DIALOG
  • JFileChooser.SAVE_DIALOG
  • JFileChooser.CUSTOM_DIALOG
See Also:
setDialogType(int) sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int)

setDialogType sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int)

public void setDialogType(int dialogType)
Sets the type of this dialog. Use OPEN_DIALOG when you want to bring up a file chooser that the user can use to open a file. Likewise, use SAVE_DIALOG for letting the user choose a file for saving. Use CUSTOM_DIALOG when you want to use the file chooser in a context other than "Open" or "Save". For instance, you might want to bring up a file chooser that allows the user to choose a file to execute. Note that you normally would not need to set the JFileChooser to use CUSTOM_DIALOG since a call to setApproveButtonText does this for you. The default dialog type is JFileChooser.OPEN_DIALOG.

Parameters:
dialogType - the type of dialog to be displayed:
  • JFileChooser.OPEN_DIALOG
  • JFileChooser.SAVE_DIALOG
  • JFileChooser.CUSTOM_DIALOG
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if dialogType is not legal
See Also:
getDialogType() sample code for javax.swing.JFileChooser.getDialogType() definition code for javax.swing.JFileChooser.getDialogType() , setApproveButtonText(java.lang.String) sample code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String)

setDialogTitle sample code for javax.swing.JFileChooser.setDialogTitle(java.lang.String) definition code for javax.swing.JFileChooser.setDialogTitle(java.lang.String)

public void setDialogTitle(String sample code for java.lang.String definition code for java.lang.String  dialogTitle)
Sets the string that goes in the JFileChooser window's title bar.

Parameters:
dialogTitle - the new String for the title bar
See Also:
getDialogTitle() sample code for javax.swing.JFileChooser.getDialogTitle() definition code for javax.swing.JFileChooser.getDialogTitle()

getDialogTitle sample code for javax.swing.JFileChooser.getDialogTitle() definition code for javax.swing.JFileChooser.getDialogTitle()

public String sample code for java.lang.String definition code for java.lang.String  getDialogTitle()
Gets the string that goes in the JFileChooser's titlebar.

See Also:
setDialogTitle(java.lang.String) sample code for javax.swing.JFileChooser.setDialogTitle(java.lang.String) definition code for javax.swing.JFileChooser.setDialogTitle(java.lang.String)

setApproveButtonToolTipText sample code for javax.swing.JFileChooser.setApproveButtonToolTipText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonToolTipText(java.lang.String)

public void setApproveButtonToolTipText(String sample code for java.lang.String definition code for java.lang.String  toolTipText)
Sets the tooltip text used in the ApproveButton. If null, the UI object will determine the button's text.

See Also:
setApproveButtonText(java.lang.String) sample code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) , setDialogType(int) sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int) , showDialog(java.awt.Component, java.lang.String) sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

getApproveButtonToolTipText sample code for javax.swing.JFileChooser.getApproveButtonToolTipText() definition code for javax.swing.JFileChooser.getApproveButtonToolTipText()

public String sample code for java.lang.String definition code for java.lang.String  getApproveButtonToolTipText()
Returns the tooltip text used in the ApproveButton. If null, the UI object will determine the button's text.

Returns:
the text used in the ApproveButton
See Also:
setApproveButtonText(java.lang.String) sample code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) , setDialogType(int) sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int) , showDialog(java.awt.Component, java.lang.String) sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

getApproveButtonMnemonic sample code for javax.swing.JFileChooser.getApproveButtonMnemonic() definition code for javax.swing.JFileChooser.getApproveButtonMnemonic()

public int getApproveButtonMnemonic()
Returns the approve button's mnemonic.

Returns:
an integer value for the mnemonic key
See Also:
setApproveButtonMnemonic(int) sample code for javax.swing.JFileChooser.setApproveButtonMnemonic(int) definition code for javax.swing.JFileChooser.setApproveButtonMnemonic(int)

setApproveButtonMnemonic sample code for javax.swing.JFileChooser.setApproveButtonMnemonic(int) definition code for javax.swing.JFileChooser.setApproveButtonMnemonic(int)

public void setApproveButtonMnemonic(int mnemonic)
Sets the approve button's mnemonic using a numeric keycode.

Parameters:
mnemonic - an integer value for the mnemonic key
See Also:
getApproveButtonMnemonic() sample code for javax.swing.JFileChooser.getApproveButtonMnemonic() definition code for javax.swing.JFileChooser.getApproveButtonMnemonic()

setApproveButtonMnemonic sample code for javax.swing.JFileChooser.setApproveButtonMnemonic(char) definition code for javax.swing.JFileChooser.setApproveButtonMnemonic(char)

public void setApproveButtonMnemonic(char mnemonic)
Sets the approve button's mnemonic using a character.

Parameters:
mnemonic - a character value for the mnemonic key
See Also:
getApproveButtonMnemonic() sample code for javax.swing.JFileChooser.getApproveButtonMnemonic() definition code for javax.swing.JFileChooser.getApproveButtonMnemonic()

setApproveButtonText sample code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String)

public void setApproveButtonText(String sample code for java.lang.String definition code for java.lang.String  approveButtonText)
Sets the text used in the ApproveButton in the FileChooserUI.

Parameters:
approveButtonText - the text used in the ApproveButton
See Also:
getApproveButtonText() sample code for javax.swing.JFileChooser.getApproveButtonText() definition code for javax.swing.JFileChooser.getApproveButtonText() , setDialogType(int) sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int) , showDialog(java.awt.Component, java.lang.String) sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

getApproveButtonText sample code for javax.swing.JFileChooser.getApproveButtonText() definition code for javax.swing.JFileChooser.getApproveButtonText()

public String sample code for java.lang.String definition code for java.lang.String  getApproveButtonText()
Returns the text used in the ApproveButton in the FileChooserUI. If null, the UI object will determine the button's text. Typically, this would be "Open" or "Save".

Returns:
the text used in the ApproveButton
See Also:
setApproveButtonText(java.lang.String) sample code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) definition code for javax.swing.JFileChooser.setApproveButtonText(java.lang.String) , setDialogType(int) sample code for javax.swing.JFileChooser.setDialogType(int) definition code for javax.swing.JFileChooser.setDialogType(int) , showDialog(java.awt.Component, java.lang.String) sample code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String) definition code for javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)

getChoosableFileFilters sample code for javax.swing.JFileChooser.getChoosableFileFilters() definition code for javax.swing.JFileChooser.getChoosableFileFilters()

public FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter [] getChoosableFileFilters()
Gets the list of user choosable file filters.

Returns:
a FileFilter array containing all the choosable file filters
See Also:
addChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) , removeChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) , resetChoosableFileFilters() sample code for javax.swing.JFileChooser.resetChoosableFileFilters() definition code for javax.swing.JFileChooser.resetChoosableFileFilters()

addChoosableFileFilter sample code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter)

public void addChoosableFileFilter(FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  filter)
Adds a filter to the list of user choosable file filters. For information on setting the file selection mode, see setFileSelectionMode sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int) .

Parameters:
filter - the FileFilter to add to the choosable file filter list
See Also:
getChoosableFileFilters() sample code for javax.swing.JFileChooser.getChoosableFileFilters() definition code for javax.swing.JFileChooser.getChoosableFileFilters() , removeChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) , resetChoosableFileFilters() sample code for javax.swing.JFileChooser.resetChoosableFileFilters() definition code for javax.swing.JFileChooser.resetChoosableFileFilters() , setFileSelectionMode(int) sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int)

removeChoosableFileFilter sample code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter)

public boolean removeChoosableFileFilter(FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  f)
Removes a filter from the list of user choosable file filters. Returns true if the file filter was removed.

See Also:
addChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) , getChoosableFileFilters() sample code for javax.swing.JFileChooser.getChoosableFileFilters() definition code for javax.swing.JFileChooser.getChoosableFileFilters() , resetChoosableFileFilters() sample code for javax.swing.JFileChooser.resetChoosableFileFilters() definition code for javax.swing.JFileChooser.resetChoosableFileFilters()

resetChoosableFileFilters sample code for javax.swing.JFileChooser.resetChoosableFileFilters() definition code for javax.swing.JFileChooser.resetChoosableFileFilters()

public void resetChoosableFileFilters()
Resets the choosable file filter list to its starting state. Normally, this removes all added file filters while leaving the AcceptAll file filter.

See Also:
addChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) , getChoosableFileFilters() sample code for javax.swing.JFileChooser.getChoosableFileFilters() definition code for javax.swing.JFileChooser.getChoosableFileFilters() , removeChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter)

getAcceptAllFileFilter sample code for javax.swing.JFileChooser.getAcceptAllFileFilter() definition code for javax.swing.JFileChooser.getAcceptAllFileFilter()

public FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  getAcceptAllFileFilter()
Returns the AcceptAll file filter. For example, on Microsoft Windows this would be All Files (*.*).


isAcceptAllFileFilterUsed sample code for javax.swing.JFileChooser.isAcceptAllFileFilterUsed() definition code for javax.swing.JFileChooser.isAcceptAllFileFilterUsed()

public boolean isAcceptAllFileFilterUsed()
Returns whether the AcceptAll FileFilter is used.

Returns:
true if the AcceptAll FileFilter is used
Since:
1.3
See Also:
setAcceptAllFileFilterUsed(boolean) sample code for javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean) definition code for javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean)

setAcceptAllFileFilterUsed sample code for javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean) definition code for javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean)

public void setAcceptAllFileFilterUsed(boolean b)
Determines whether the AcceptAll FileFilter is used as an available choice in the choosable filter list. If false, the AcceptAll file filter is removed from the list of available file filters. If true, the AcceptAll file filter will become the the actively used file filter.

Since:
1.3
See Also:
isAcceptAllFileFilterUsed() sample code for javax.swing.JFileChooser.isAcceptAllFileFilterUsed() definition code for javax.swing.JFileChooser.isAcceptAllFileFilterUsed() , getAcceptAllFileFilter() sample code for javax.swing.JFileChooser.getAcceptAllFileFilter() definition code for javax.swing.JFileChooser.getAcceptAllFileFilter() , setFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter)

getAccessory sample code for javax.swing.JFileChooser.getAccessory() definition code for javax.swing.JFileChooser.getAccessory()

public JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  getAccessory()
Returns the accessory component.

Returns:
this JFileChooser's accessory component, or null
See Also:
setAccessory(javax.swing.JComponent) sample code for javax.swing.JFileChooser.setAccessory(javax.swing.JComponent) definition code for javax.swing.JFileChooser.setAccessory(javax.swing.JComponent)

setAccessory sample code for javax.swing.JFileChooser.setAccessory(javax.swing.JComponent) definition code for javax.swing.JFileChooser.setAccessory(javax.swing.JComponent)

public void setAccessory(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  newAccessory)
Sets the accessory component. An accessory is often used to show a preview image of the selected file; however, it can be used for anything that the programmer wishes, such as extra custom file chooser controls.

Note: if there was a previous accessory, you should unregister any listeners that the accessory might have registered with the file chooser.


setFileSelectionMode sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int)

public void setFileSelectionMode(int mode)
Sets the JFileChooser to allow the user to just select files, just select directories, or select both files and directories. The default is JFilesChooser.FILES_ONLY.

Parameters:
mode - the type of files to be displayed:
  • JFileChooser.FILES_ONLY
  • JFileChooser.DIRECTORIES_ONLY
  • JFileChooser.FILES_AND_DIRECTORIES
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if mode is an illegal file selection mode
See Also:
getFileSelectionMode() sample code for javax.swing.JFileChooser.getFileSelectionMode() definition code for javax.swing.JFileChooser.getFileSelectionMode()

getFileSelectionMode sample code for javax.swing.JFileChooser.getFileSelectionMode() definition code for javax.swing.JFileChooser.getFileSelectionMode()

public int getFileSelectionMode()
Returns the current file-selection mode. The default is JFilesChooser.FILES_ONLY.

Returns:
the type of files to be displayed, one of the following:
  • JFileChooser.FILES_ONLY
  • JFileChooser.DIRECTORIES_ONLY
  • JFileChooser.FILES_AND_DIRECTORIES
See Also:
setFileSelectionMode(int) sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int)

isFileSelectionEnabled sample code for javax.swing.JFileChooser.isFileSelectionEnabled() definition code for javax.swing.JFileChooser.isFileSelectionEnabled()

public boolean isFileSelectionEnabled()
Convenience call that determines if files are selectable based on the current file selection mode.

See Also:
setFileSelectionMode(int) sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int) , getFileSelectionMode() sample code for javax.swing.JFileChooser.getFileSelectionMode() definition code for javax.swing.JFileChooser.getFileSelectionMode()

isDirectorySelectionEnabled sample code for javax.swing.JFileChooser.isDirectorySelectionEnabled() definition code for javax.swing.JFileChooser.isDirectorySelectionEnabled()

public boolean isDirectorySelectionEnabled()
Convenience call that determines if directories are selectable based on the current file selection mode.

See Also:
setFileSelectionMode(int) sample code for javax.swing.JFileChooser.setFileSelectionMode(int) definition code for javax.swing.JFileChooser.setFileSelectionMode(int) , getFileSelectionMode() sample code for javax.swing.JFileChooser.getFileSelectionMode() definition code for javax.swing.JFileChooser.getFileSelectionMode()

setMultiSelectionEnabled sample code for javax.swing.JFileChooser.setMultiSelectionEnabled(boolean) definition code for javax.swing.JFileChooser.setMultiSelectionEnabled(boolean)

public void setMultiSelectionEnabled(boolean b)
Sets the file chooser to allow multiple file selections.

Parameters:
b - true if multiple files may be selected
See Also:
isMultiSelectionEnabled() sample code for javax.swing.JFileChooser.isMultiSelectionEnabled() definition code for javax.swing.JFileChooser.isMultiSelectionEnabled()

isMultiSelectionEnabled sample code for javax.swing.JFileChooser.isMultiSelectionEnabled() definition code for javax.swing.JFileChooser.isMultiSelectionEnabled()

public boolean isMultiSelectionEnabled()
Returns true if multiple files can be selected.

Returns:
true if multiple files can be selected
See Also:
setMultiSelectionEnabled(boolean) sample code for javax.swing.JFileChooser.setMultiSelectionEnabled(boolean) definition code for javax.swing.JFileChooser.setMultiSelectionEnabled(boolean)

isFileHidingEnabled sample code for javax.swing.JFileChooser.isFileHidingEnabled() definition code for javax.swing.JFileChooser.isFileHidingEnabled()

public boolean isFileHidingEnabled()
Returns true if hidden files are not shown in the file chooser; otherwise, returns false.

Returns:
the status of the file hiding property
See Also:
setFileHidingEnabled(boolean) sample code for javax.swing.JFileChooser.setFileHidingEnabled(boolean) definition code for javax.swing.JFileChooser.setFileHidingEnabled(boolean)

setFileHidingEnabled sample code for javax.swing.JFileChooser.setFileHidingEnabled(boolean) definition code for javax.swing.JFileChooser.setFileHidingEnabled(boolean)

public void setFileHidingEnabled(boolean b)
Sets file hiding on or off. If true, hidden files are not shown in the file chooser. The job of determining which files are shown is done by the FileView.

Parameters:
b - the boolean value that determines whether file hiding is turned on
See Also:
isFileHidingEnabled() sample code for javax.swing.JFileChooser.isFileHidingEnabled() definition code for javax.swing.JFileChooser.isFileHidingEnabled()

setFileFilter sample code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter)

public void setFileFilter(FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  filter)
Sets the current file filter. The file filter is used by the file chooser to filter out files from the user's view.

Parameters:
filter - the new current file filter to use
See Also:
getFileFilter() sample code for javax.swing.JFileChooser.getFileFilter() definition code for javax.swing.JFileChooser.getFileFilter()

getFileFilter sample code for javax.swing.JFileChooser.getFileFilter() definition code for javax.swing.JFileChooser.getFileFilter()

public FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter  getFileFilter()
Returns the currently selected file filter.

Returns:
the current file filter
See Also:
setFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter) , addChoosableFileFilter(javax.swing.filechooser.FileFilter) sample code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter) definition code for javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter)

setFileView sample code for javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView) definition code for javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView)

public void setFileView(FileView sample code for javax.swing.filechooser.FileView definition code for javax.swing.filechooser.FileView  fileView)
Sets the file view to used to retrieve UI information, such as the icon that represents a file or the type description of a file.

See Also:
getFileView() sample code for javax.swing.JFileChooser.getFileView() definition code for javax.swing.JFileChooser.getFileView()

getFileView sample code for javax.swing.JFileChooser.getFileView() definition code for javax.swing.JFileChooser.getFileView()

public FileView sample code for javax.swing.filechooser.FileView definition code for javax.swing.filechooser.FileView  getFileView()
Returns the current file view.

See Also:
setFileView(javax.swing.filechooser.FileView) sample code for javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView) definition code for javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView)

getName sample code for javax.swing.JFileChooser.getName(java.io.File) definition code for javax.swing.JFileChooser.getName(java.io.File)

public String sample code for java.lang.String definition code for java.lang.String  getName(File sample code for java.io.File definition code for java.io.File  f)
Returns the filename.

Parameters:
f - the File
Returns:
the String containing the filename for f
See Also:
FileView.getName(java.io.File) sample code for javax.swing.filechooser.FileView.getName(java.io.File) definition code for javax.swing.filechooser.FileView.getName(java.io.File)

getDescription sample code for javax.swing.JFileChooser.getDescription(java.io.File) definition code for javax.swing.JFileChooser.getDescription(java.io.File)

public String sample code for java.lang.String definition code for java.lang.String  getDescription(File sample code for java.io.File definition code for java.io.File  f)
Returns the file description.

Parameters:
f - the File
Returns:
the String containing the file description for f
See Also:
FileView.getDescription(java.io.File) sample code for javax.swing.filechooser.FileView.getDescription(java.io.File) definition code for javax.swing.filechooser.FileView.getDescription(java.io.File)

getTypeDescription sample code for javax.swing.JFileChooser.getTypeDescription(java.io.File) definition code for javax.swing.JFileChooser.getTypeDescription(java.io.File)

public String sample code for java.lang.String definition code for java.lang.String  getTypeDescription(File sample code for java.io.File definition code for java.io.File  f)
Returns the file type.

Parameters:
f - the File
Returns:
the String containing the file type description for f
See Also:
FileView.getTypeDescription(java.io.File) sample code for javax.swing.filechooser.FileView.getTypeDescription(java.io.File) definition code for javax.swing.filechooser.FileView.getTypeDescription(java.io.File)

getIcon sample code for javax.swing.JFileChooser.getIcon(java.io.File) definition code for javax.swing.JFileChooser.getIcon(java.io.File)

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getIcon(File sample code for java.io.File definition code for java.io.File  f)
Returns the icon for this file or type of file, depending on the system.

Parameters:
f - the File
Returns:
the Icon for this file, or type of file
See Also:
FileView.getIcon(java.io.File) sample code for javax.swing.filechooser.FileView.getIcon(java.io.File) definition code for javax.swing.filechooser.FileView.getIcon(java.io.File)

isTraversable sample code for javax.swing.JFileChooser.isTraversable(java.io.File) definition code for javax.swing.JFileChooser.isTraversable(java.io.File)

public boolean isTraversable(File sample code for java.io.File definition code for java.io.File  f)
Returns true if the file (directory) can be visited. Returns false if the directory cannot be traversed.

Parameters:
f - the File
Returns:
true if the file/directory can be traversed, otherwise false
See Also:
FileView.isTraversable(java.io.File) sample code for javax.swing.filechooser.FileView.isTraversable(java.io.File) definition code for javax.swing.filechooser.FileView.isTraversable(java.io.File)

accept sample code for javax.swing.JFileChooser.accept(java.io.File) definition code for javax.swing.JFileChooser.accept(java.io.File)

public boolean accept(File sample code for java.io.File definition code for java.io.File  f)
Returns true if the file should be displayed.

Parameters:
f - the File
Returns:
true if the file should be displayed, otherwise false
See Also:
FileFilter.accept(java.io.File) sample code for javax.swing.filechooser.FileFilter.accept(java.io.File) definition code for javax.swing.filechooser.FileFilter.accept(java.io.File)

setFileSystemView sample code for javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView)

public void setFileSystemView(FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  fsv)
Sets the file system view that the JFileChooser uses for accessing and creating file system resources, such as finding the floppy drive and getting a list of root drives.

Parameters:
fsv - the new FileSystemView
See Also:
FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView

getFileSystemView sample code for javax.swing.JFileChooser.getFileSystemView() definition code for javax.swing.JFileChooser.getFileSystemView()

public FileSystemView sample code for javax.swing.filechooser.FileSystemView definition code for javax.swing.filechooser.FileSystemView  getFileSystemView()
Returns the file system view.

Returns:
the FileSystemView object
See Also:
setFileSystemView(javax.swing.filechooser.FileSystemView) sample code for javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView) definition code for javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView)

approveSelection sample code for javax.swing.JFileChooser.approveSelection() definition code for javax.swing.JFileChooser.approveSelection()

public void approveSelection()
Called by the UI when the user hits the Approve button (labeled "Open" or "Save", by default). This can also be called by the programmer. This method causes an action event to fire with the command string equal to APPROVE_SELECTION.

See Also:
APPROVE_SELECTION sample code for javax.swing.JFileChooser.APPROVE_SELECTION definition code for javax.swing.JFileChooser.APPROVE_SELECTION

cancelSelection sample code for javax.swing.JFileChooser.cancelSelection() definition code for javax.swing.JFileChooser.cancelSelection()

public void cancelSelection()
Called by the UI when the user chooses the Cancel button. This can also be called by the programmer. This method causes an action event to fire with the command string equal to CANCEL_SELECTION.

See Also:
CANCEL_SELECTION sample code for javax.swing.JFileChooser.CANCEL_SELECTION definition code for javax.swing.JFileChooser.CANCEL_SELECTION

addActionListener sample code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener)

public void addActionListener(ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
Adds an ActionListener to the file chooser.

Parameters:
l - the listener to be added
See Also:
approveSelection() sample code for javax.swing.JFileChooser.approveSelection() definition code for javax.swing.JFileChooser.approveSelection() , cancelSelection() sample code for javax.swing.JFileChooser.cancelSelection() definition code for javax.swing.JFileChooser.cancelSelection()

removeActionListener sample code for javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener)

public void removeActionListener(ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
Removes an ActionListener from the file chooser.

Parameters:
l - the listener to be removed
See Also:
addActionListener(java.awt.event.ActionListener) sample code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener)

getActionListeners sample code for javax.swing.JFileChooser.getActionListeners() definition code for javax.swing.JFileChooser.getActionListeners()

public ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener [] getActionListeners()
Returns an array of all the action listeners registered on this file chooser.

Returns:
all of this file chooser's ActionListeners or an empty array if no action listeners are currently registered
Since:
1.4
See Also:
addActionListener(java.awt.event.ActionListener) sample code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener) , removeActionListener(java.awt.event.ActionListener) sample code for javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener) definition code for javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener)

fireActionPerformed sample code for javax.swing.JFileChooser.fireActionPerformed(java.lang.String) definition code for javax.swing.JFileChooser.fireActionPerformed(java.lang.String)

protected void fireActionPerformed(String sample code for java.lang.String definition code for java.lang.String  command)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the command parameter.

See Also:
EventListenerList sample code for javax.swing.event.EventListenerList definition code for javax.swing.event.EventListenerList

updateUI sample code for javax.swing.JFileChooser.updateUI() definition code for javax.swing.JFileChooser.updateUI()

public void updateUI()
Resets the UI property to a value from the current look and feel.

Overrides:
updateUI sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
See Also:
JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

getUIClassID sample code for javax.swing.JFileChooser.getUIClassID() definition code for javax.swing.JFileChooser.getUIClassID()

public String sample code for java.lang.String definition code for java.lang.String  getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component.

Overrides:
getUIClassID sample code for javax.swing.JComponent.getUIClassID() definition code for javax.swing.JComponent.getUIClassID() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
the string "FileChooserUI"
See Also:
JComponent.getUIClassID() sample code for javax.swing.JComponent.getUIClassID() definition code for javax.swing.JComponent.getUIClassID() , UIDefaults.getUI(javax.swing.JComponent) sample code for javax.swing.UIDefaults.getUI(javax.swing.JComponent) definition code for javax.swing.UIDefaults.getUI(javax.swing.JComponent)

getUI sample code for javax.swing.JFileChooser.getUI() definition code for javax.swing.JFileChooser.getUI()

public FileChooserUI sample code for javax.swing.plaf.FileChooserUI definition code for javax.swing.plaf.FileChooserUI  getUI()
Gets the UI object which implements the L&F for this component.

Returns:
the FileChooserUI object that implements the FileChooserUI L&F

paramString sample code for javax.swing.JFileChooser.paramString() definition code for javax.swing.JFileChooser.paramString()

protected String sample code for java.lang.String definition code for java.lang.String  paramString()
Returns a string representation of this JFileChooser. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Overrides:
paramString sample code for javax.swing.JComponent.paramString() definition code for javax.swing.JComponent.paramString() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
a string representation of this JFileChooser

getAccessibleContext sample code for javax.swing.JFileChooser.getAccessibleContext() definition code for javax.swing.JFileChooser.getAccessibleContext()

public AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  getAccessibleContext()
Gets the AccessibleContext associated with this JFileChooser. For file choosers, the AccessibleContext takes the form of an AccessibleJFileChooser. A new AccessibleJFileChooser instance is created if necessary.

Specified by:
getAccessibleContext sample code for javax.accessibility.Accessible.getAccessibleContext() definition code for javax.accessibility.Accessible.getAccessibleContext() in interface Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible
Overrides:
getAccessibleContext sample code for javax.swing.JComponent.getAccessibleContext() definition code for javax.swing.JComponent.getAccessibleContext() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
an AccessibleJFileChooser that serves as the AccessibleContext of this JFileChooser