JComponentPack 1.5.0

com.zfqjava.swing
Class JDirChooser

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.zfqjava.swing.JDirChooser
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JDirChooser
extends JComponent
implements Accessible

JDirChooser provides a tree control to allow a user select a directory.
Examples:

        JDirChooser dirChooser = new JDirChooser();
        int value = dirChooser.showDialog(null);
        if(value == JDirChooser.OK_OPTION) {
            File file = dirChooser.getSelectedFile();
            System.out.println("Selected File: " + file);
        } 
 

Client Property:
NameValueDefault Value
JDirChooser.recursiveModeEnabled
  • Boolean.TRUE
  • Boolean.FALSE
Boolean.FALSE

See Also:
Serialized Form

Nested Class Summary
protected  class JDirChooser.AccessibleJDirChooser
          This class implements accessibility support for the JDirChooser class.
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  AccessibleContext accessibleContext
           
static int CANCEL_OPTION
          Return value if cancel is chosen.
static int DIRECTORIES_ONLY
          Instruction to display only directories.
static String FILE_FILTER_CHANGED_PROPERTY
          User changed the kind of files to display.
static String FILE_HIDING_CHANGED_PROPERTY
          Identifies a change in the display-hidden-files property.
static String FILE_SELECTION_MODE_CHANGED_PROPERTY
          Identifies a change in the kind of selection (single, multiple, etc.).
static String FILE_SYSTEM_VIEW_CHANGED_PROPERTY
          Says that a different object is being used to find available drives on the system.
static String FILE_VIEW_CHANGED_PROPERTY
          Says that a different object is being used to retrieve file information.
static int FILES_AND_DIRECTORIES
          Instruction to display both files and directories.
static String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
          Enables multiple-file selections.
static int OK_OPTION
          Return value if ok is chosen.
static String ROOT_FILE_CHANGED_PROPERTY
          Identifies change in the root directory property.
static String SELECTED_FILE_CHANGED_PROPERTY
          Identifies change in user's single-file selection.
static String SELECTED_FILES_CHANGED_PROPERTY
          Identifies change in user's multiple-file selection.
 
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JDirChooser()
          Constructs a JDirChooser pointing to the user's root directory, in win32 platform, that's desktop.
JDirChooser(File rootDirectory)
          Constructs a JDirChooser using the given directory as the root directory.
JDirChooser(File rootDirectory, FileSystemView fsv)
          Constructs a JDirChooser using the given root directory and the given FileSystemView.
JDirChooser(FileSystemView fsv)
          Constructs a JDirChooser using the given FileSystemView.
JDirChooser(String rootDirectoryPath)
          Constructs a JDirChooser use the given directory as the root directory.
JDirChooser(String rootFilePath, FileSystemView fsv)
          Constructs a JDirChooser using the given root directory path and the the given FileSystemView.
 
Method Summary
protected  JDialog createDialog(Component parent, String msg, Icon icon, String title, JDirChooser dirChooser, ActionListener okListener, ActionListener cancelListener)
          Creates the dialog for the JDirChooser.
 void ensureFileIsVisible(File f)
          Ensure the file can visible in the JDirChooser, the JDirChooser can be represented as a JTree, then this can scroll it's container to make it's child visible.
 AccessibleContext getAccessibleContext()
          Gets the AccessibleContext associated with this JDirChooser.
 FileFilter getFileFilter()
          Returns the currently selected file filter.
 int getFileSelectionMode()
          Returns the current file-selection mode.
 FileSystemView getFileSystemView()
          Returns the file system view.
 FileView getFileView()
          Returns the current file view.
 File getRootFile()
          Returns the root directory in use, the default is desktop in windows.
 File getSelectedFile()
          Returns the current selected file, may be null.
 File[] getSelectedFiles()
          Returns the current selected files if the dir chooser is set to allow multiple selection.
 DirChooserUI getUI()
          Gets the UI object which implements the L&F for this component.
 String getUIClassID()
          Returns a string that specifies the name of the L&F class that renders this component.
 boolean isFileHidingEnabled()
          Returns true if hidden files are not shown in the dir chooser, otherwise, returns false.
 boolean isMultiSelectionEnabled()
          Returns true if multiple files can be selected.
 boolean isSelectable(File f)
          Returns true if a file is selectable, that's mean the specify file exist in the file system.
 void newFolder()
          Makes a new folder on current path.
protected  String paramString()
          Returns a string representation of this JDirChooser.
 void refresh()
          Refreshs the current JDirChooser, this will reload the file object from file system.
 void refresh(File dir)
          Refresh the specify directory, this will reload the file object from file system.
 void setFileFilter(FileFilter fileFilter)
          Sets the current file filter.
 void setFileHidingEnabled(boolean b)
          Sets file hiding on or off.
 void setFileSelectionMode(int mode)
          Sets the JDirChooser to allow the user to just select directories, or select both files and directories.
 void setFileSystemView(FileSystemView fsv)
          Sets the file system view that the JDirChooser uses for accessing and creating file system resources, such as finding the floppy drive and getting a list of root drives.
 void setFileView(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(boolean b)
          Sets the file chooser to allow multiple file selections.
 void setRootFile(File rootFile)
          Sets the JDirChooser root directory, the default is desktop in windows.
 void setSelectedFile(File selectedFile)
          Sets the current selected file.
 void setSelectedFiles(File[] selectedFiles)
          Sets the current selected files if the dir chooser is set to allow multiple selection.
 int showDialog(Component parent)
          Pops up a dialog contains the JDirChooser and parented to parent with the dialog having a default title.
 int showDialog(Component parent, String msg, Icon icon)
          Pops up a dialog contains the JDirChooser and parented to parent with the dialog having a default title and message msg and icon icon.
 int showDialog(Component parent, String msg, Icon icon, String title)
          Pops up a dialog contains the JDirChooser, and parented to parent with the dialog having the title title and message msg and icon icon.
 void updateUI()
          Notification from the UIFactory that the L&F has changed.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OK_OPTION

public static final int OK_OPTION
Return value if ok is chosen.

See Also:
Constant Field Values

CANCEL_OPTION

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

See Also:
Constant Field Values

DIRECTORIES_ONLY

public static final int DIRECTORIES_ONLY
Instruction to display only directories.

See Also:
Constant Field Values

FILES_AND_DIRECTORIES

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

See Also:
Constant Field Values

SELECTED_FILE_CHANGED_PROPERTY

public static final String SELECTED_FILE_CHANGED_PROPERTY
Identifies change in user's single-file selection.

See Also:
Constant Field Values

SELECTED_FILES_CHANGED_PROPERTY

public static final String SELECTED_FILES_CHANGED_PROPERTY
Identifies change in user's multiple-file selection.

See Also:
Constant Field Values

FILE_SELECTION_MODE_CHANGED_PROPERTY

public static final String FILE_SELECTION_MODE_CHANGED_PROPERTY
Identifies a change in the kind of selection (single, multiple, etc.).

See Also:
Constant Field Values

ROOT_FILE_CHANGED_PROPERTY

public static final String ROOT_FILE_CHANGED_PROPERTY
Identifies change in the root directory property.

See Also:
Constant Field Values

MULTI_SELECTION_ENABLED_CHANGED_PROPERTY

public static final String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
Enables multiple-file selections.

See Also:
Constant Field Values

FILE_SYSTEM_VIEW_CHANGED_PROPERTY

public static final 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

public static final 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

public static final String FILE_HIDING_CHANGED_PROPERTY
Identifies a change in the display-hidden-files property.

See Also:
Constant Field Values

FILE_FILTER_CHANGED_PROPERTY

public static final String FILE_FILTER_CHANGED_PROPERTY
User changed the kind of files to display.

See Also:
Constant Field Values

accessibleContext

protected AccessibleContext accessibleContext
Constructor Detail

JDirChooser

public JDirChooser()
Constructs a JDirChooser pointing to the user's root directory, in win32 platform, that's desktop.


JDirChooser

public JDirChooser(String rootDirectoryPath)
Constructs a JDirChooser use the given directory as the root directory.

Parameters:
rootDirectoryPath - a String giving the path to directory

JDirChooser

public JDirChooser(File rootDirectory)
Constructs a JDirChooser using the given directory as the root directory.

Parameters:
rootDirectory - a File giving the path to directory

JDirChooser

public JDirChooser(FileSystemView fsv)
Constructs a JDirChooser using the given FileSystemView.

Parameters:
fsv - the FileSystemView object

JDirChooser

public JDirChooser(String rootFilePath,
                   FileSystemView fsv)
Constructs a JDirChooser using the given root directory path and the the given FileSystemView.

Parameters:
rootDirectoryPath - a String giving the path to directory
fsv - the FileSystemView object

JDirChooser

public JDirChooser(File rootDirectory,
                   FileSystemView fsv)
Constructs a JDirChooser using the given root directory and the given FileSystemView.

Parameters:
rootDirectory - the root file of this JDirChooser
fsv - the FileSystemView object
Method Detail

updateUI

public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JComponent
See Also:
JComponent.updateUI()

getUIClassID

public String getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component.

Overrides:
getUIClassID in class JComponent
Returns:
the string "DirChooserUI"
See Also:
JComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)

getUI

public DirChooserUI getUI()
Gets the UI object which implements the L&F for this component.

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

getSelectedFile

public File getSelectedFile()
Returns the current selected file, may be null. Use getSelectedFiles() if isMultiSelectionEnabled() return true.

Returns:
the current selected file
See Also:
setSelectedFile(java.io.File)

setSelectedFile

public void setSelectedFile(File selectedFile)
Sets the current selected file. Use setSelectedFiles(java.io.File[]) if isMultiSelectionEnabled() return true.

Parameters:
selectedFile - the current selected file
See Also:
getSelectedFile()

getSelectedFiles

public File[] getSelectedFiles()
Returns the current selected files if the dir chooser is set to allow multiple selection. Use getSelectedFile() if isMultiSelectionEnabled() return false.

Returns:
the current selected files
See Also:
setSelectedFiles(java.io.File[])

setSelectedFiles

public void setSelectedFiles(File[] selectedFiles)
Sets the current selected files if the dir chooser is set to allow multiple selection. Use setSelectedFile(java.io.File) if isMultiSelectionEnabled() return false.

Parameters:
selectedFiles - the current selected files
See Also:
getSelectedFiles()

setRootFile

public void setRootFile(File rootFile)
Sets the JDirChooser root directory, the default is desktop in windows.

Parameters:
rootFile - the root directory
See Also:
getRootFile()

getRootFile

public File getRootFile()
Returns the root directory in use, the default is desktop in windows.

Returns:
the root directory
See Also:
setRootFile(java.io.File)

setFileSystemView

public void setFileSystemView(FileSystemView fsv)
Sets the file system view that the JDirChooser 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

getFileSystemView

public FileSystemView getFileSystemView()
Returns the file system view.

Returns:
the FileSystemView object
See Also:
setFileSystemView(javax.swing.filechooser.FileSystemView)

setFileView

public void setFileView(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()

getFileView

public FileView getFileView()
Returns the current file view.

See Also:
setFileView(javax.swing.filechooser.FileView)

setFileSelectionMode

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

Parameters:
mode - the type of files to be displayed:
  • JDirChooser.DIRECTORIES_ONLY
  • JDirChooser.FILES_AND_DIRECTORIES
Throws:
IllegalArgumentException - if mode is an illegal mode
See Also:
getFileSelectionMode()

getFileSelectionMode

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

Returns:
the type of files to be displayed, one of the following:
  • JDirChooser.DIRECTORIES_ONLY
  • JDirChooser.FILES_AND_DIRECTORIES
See Also:
setFileSelectionMode(int)

setMultiSelectionEnabled

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

Parameters:
b - true if multiple files may be selected
See Also:
isMultiSelectionEnabled()

isMultiSelectionEnabled

public boolean isMultiSelectionEnabled()
Returns true if multiple files can be selected. The default is false.

Returns:
true if multiple files can be selected
See Also:
setMultiSelectionEnabled(boolean)

isFileHidingEnabled

public boolean isFileHidingEnabled()
Returns true if hidden files are not shown in the dir chooser, otherwise, returns false. The default is true.

Returns:
the status of the file hiding property
See Also:
setFileHidingEnabled(boolean)

setFileHidingEnabled

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. The default is true.

Parameters:
b - the boolean value that determines whether file hiding is turned on
See Also:
isFileHidingEnabled()

setFileFilter

public void setFileFilter(FileFilter fileFilter)
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()

getFileFilter

public FileFilter getFileFilter()
Returns the currently selected file filter.

Returns:
the current file filter
See Also:
setFileFilter(javax.swing.filechooser.FileFilter)

ensureFileIsVisible

public void ensureFileIsVisible(File f)
Ensure the file can visible in the JDirChooser, the JDirChooser can be represented as a JTree, then this can scroll it's container to make it's child visible.

Parameters:
f - the file that need visible

isSelectable

public boolean isSelectable(File f)
Returns true if a file is selectable, that's mean the specify file exist in the file system.

Parameters:
f - the file that need check
Returns:
true if the specify file exist in file system, false otherwise

refresh

public void refresh()
Refreshs the current JDirChooser, this will reload the file object from file system.


refresh

public void refresh(File dir)
Refresh the specify directory, this will reload the file object from file system.

Parameters:
dir - the specify directory to refresh

newFolder

public void newFolder()
Makes a new folder on current path.


showDialog

public int showDialog(Component parent)
Pops up a dialog contains the JDirChooser and parented to parent with the dialog having a default title.

Parameters:
parent - the parent of the dialog
Returns:
the return state of the dir chooser on popdown:
  • JDirChooser.OK_OPTION
  • JDirChooser.CANCEL_OPTION
See Also:
showDialog(java.awt.Component)

showDialog

public int showDialog(Component parent,
                      String msg,
                      Icon icon)
Pops up a dialog contains the JDirChooser and parented to parent with the dialog having a default title and message msg and icon icon.

Parameters:
parent - the parent of the dialog
msg - the message show in the dialog
icon - the icon show in the dialog
Returns:
the return state of the dir chooser on popdown:
  • JDirChooser.OK_OPTION
  • JDirChooser.CANCEL_OPTION
See Also:
showDialog(java.awt.Component)

showDialog

public int showDialog(Component parent,
                      String msg,
                      Icon icon,
                      String title)
Pops up a dialog contains the JDirChooser, and parented to parent with the dialog having the title title and message msg and icon icon.

Parameters:
parent - the parent of the dialog
msg - the message show in the dialog
icon - the icon show in the dialog
title - the title of the dialog
Returns:
the return state of the dir chooser on popdown:
  • JDirChooser.OK_OPTION
  • JDirChooser.CANCEL_OPTION
See Also:
showDialog(java.awt.Component)

createDialog

protected JDialog createDialog(Component parent,
                               String msg,
                               Icon icon,
                               String title,
                               JDirChooser dirChooser,
                               ActionListener okListener,
                               ActionListener cancelListener)
Creates the dialog for the JDirChooser.

Parameters:
parent - the parent of the dialog
msg - the message show in the dialog
icon - the icon show in the dialog
title - the title of the dialog

paramString

protected String paramString()
Returns a string representation of this JDirChooser. 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 in class JComponent
Returns:
a string representation of this JDirChooser

getAccessibleContext

public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with this JDirChooser. For color choosers, the AccessibleContext takes the form of an AccessibleJDirChooser. A new AccessibleJDirChooser instance is created if necessary.

Specified by:
getAccessibleContext in interface Accessible
Overrides:
getAccessibleContext in class JComponent
Returns:
an AccessibleJDirChooser that serves as the AccessibleContext of this JDirChooser

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.