public class MetalFileChooserUI extends BasicFileChooserUI
| Modifier and Type | Class | Description | 
|---|---|---|
| protected class  | MetalFileChooserUI.DirectoryComboBoxAction | Acts when DirectoryComboBox has changed the selected item. | 
| protected class  | MetalFileChooserUI.DirectoryComboBoxModel | Data model for a type-face selection combo-box. | 
| protected class  | MetalFileChooserUI.FileRenderer | 
Deprecated.  As of JDK version 9. | 
| protected class  | MetalFileChooserUI.FilterComboBoxModel | Data model for a type-face selection combo-box. | 
| class  | MetalFileChooserUI.FilterComboBoxRenderer | Render different type sizes and styles. | 
| protected class  | MetalFileChooserUI.SingleClickListener | 
Deprecated.  As of JDK version 9. | 
BasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.ApproveSelectionAction, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, BasicFileChooserUI.UpdateAction
cancelButtonMnemonic, cancelButtonText, cancelButtonToolTipText, computerIcon, detailsViewIcon, directoryIcon, directoryOpenButtonMnemonic, directoryOpenButtonText, directoryOpenButtonToolTipText, fileIcon, floppyDriveIcon, hardDriveIcon, helpButtonMnemonic, helpButtonText, helpButtonToolTipText, homeFolderIcon, listViewIcon, newFolderIcon, openButtonMnemonic, openButtonText, openButtonToolTipText, saveButtonMnemonic, saveButtonText, saveButtonToolTipText, updateButtonMnemonic, updateButtonText, updateButtonToolTipText, upFolderIcon, viewMenuIcon
| Constructor | Description | 
|---|---|
| MetalFileChooserUI | Constructs a new instance of  MetalFileChooserUI. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected void | addControlButtons() | Adds control buttons to bottom panel. | 
| protected ActionMap | createActionMap() | Constructs an instance of  ActionMap. | 
| protected JPanel | createDetailsView | Constructs a details view. | 
| protected MetalFileChooserUI.DirectoryComboBoxModel | createDirectoryComboBoxModel | Constructs a new instance of  DataModelforDirectoryComboBox. | 
| protected MetalFileChooserUI.FilterComboBoxModel | createFilterComboBoxModel() | Constructs a  DataModelfor typesComboBox. | 
| protected MetalFileChooserUI.FilterComboBoxRenderer | createFilterComboBoxRenderer() | Constructs a  Rendererfor typesComboBox. | 
| protected JPanel | createList | Constructs a details view. | 
| ListSelectionListener | createListSelectionListener | Creates a selection listener for the list of files and directories. | 
| static ComponentUI | createUI | Constructs a new instance of  MetalFileChooserUI. | 
| protected ActionMap | getActionMap() | Returns an instance of  ActionMap. | 
| protected JPanel | getBottomPanel() | Returns the bottom panel. | 
| protected JPanel | getButtonPanel() | Returns the button panel. | 
| String | getDirectoryName() | Returns the directory name. | 
| Dimension | getMaximumSize | Returns the maximum size of the  JFileChooser. | 
| Dimension | getMinimumSize | Returns the minimum size of the  JFileChooser. | 
| Dimension | getPreferredSize | Returns the preferred size of the specified  JFileChooser. | 
| protected void | removeControlButtons() | Removes control buttons from bottom panel. | 
| void | setDirectoryName | Sets the directory name. | 
| protected void | setDirectorySelected | Property to remember whether a directory is currently selected in the UI. | 
| void | valueChanged | Invokes when  ListSelectionEventoccurs. | 
clearIconCache, createDoubleClickListener, createModel, createPropertyChangeListener, ensureFileIsVisible, getAcceptAllFileFilter, getAccessoryPanel, getApproveButton, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getFileChooser, getFileName, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installComponents, installDefaults, installIcons, installListeners, installStrings, installUI, isDirectorySelected, rescanCurrentDirectory, setDirectory, setFileName, uninstallComponents, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStrings, uninstallUI
getDefaultButton
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
public MetalFileChooserUI(JFileChooser filechooser)
MetalFileChooserUI.filechooser - a JFileChooser
public static ComponentUI createUI(JComponent c)
MetalFileChooserUI.c - a componentMetalFileChooserUI
protected JPanel getButtonPanel()
protected JPanel getBottomPanel()
protected ActionMap getActionMap()
ActionMap.ActionMap
protected ActionMap createActionMap()
ActionMap.ActionMap
protected JPanel createList(JFileChooser fc)
fc - a JFileChooser
protected JPanel createDetailsView(JFileChooser fc)
fc - a JFileChooser
public ListSelectionListener createListSelectionListener(JFileChooser fc)
createListSelectionListener in class BasicFileChooserUI
fc - a JFileChooser
ListSelectionListener
public Dimension getPreferredSize(JComponent c)
JFileChooser. The preferred size is at least as large, in both height and width, as the preferred size recommended by the file chooser's layout manager.getPreferredSize in class ComponentUI
c - a JFileChooser
Dimension specifying the preferred width and height of the file chooserpublic Dimension getMinimumSize(JComponent c)
JFileChooser.getMinimumSize in class ComponentUI
c - a JFileChooser
Dimension specifying the minimum width and height of the file chooserpublic Dimension getMaximumSize(JComponent c)
JFileChooser.getMaximumSize in class ComponentUI
c - a JFileChooser
Dimension specifying the maximum width and height of the file chooserprotected void removeControlButtons()
protected void addControlButtons()
protected void setDirectorySelected(boolean directorySelected)
setDirectorySelected in class BasicFileChooserUI
directorySelected - if a directory is currently selected.public String getDirectoryName()
getDirectoryName in class BasicFileChooserUI
public void setDirectoryName(String dirname)
setDirectoryName in class BasicFileChooserUI
dirname - the directory nameprotected MetalFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc)
DataModel for DirectoryComboBox.fc - a JFileChooser
DataModel for DirectoryComboBox
protected MetalFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
Renderer for types ComboBox.Renderer for types ComboBox
protected MetalFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
DataModel for types ComboBox.DataModel for types ComboBox
public void valueChanged(ListSelectionEvent e)
ListSelectionEvent occurs.e - an instance of ListSelectionEvent
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/metal/MetalFileChooserUI.html