Lines Matching refs:fc

193     public void installComponents(JFileChooser fc) {
196 public void uninstallComponents(JFileChooser fc) {
199 protected void installListeners(JFileChooser fc) {
200 propertyChangeListener = createPropertyChangeListener(fc);
202 fc.addPropertyChangeListener(propertyChangeListener);
204 fc.addPropertyChangeListener(getModel());
208 SwingUtilities.replaceUIInputMap(fc, JComponent.
211 SwingUtilities.replaceUIActionMap(fc, actionMap);
244 protected void uninstallListeners(JFileChooser fc) {
246 fc.removePropertyChangeListener(propertyChangeListener);
248 fc.removePropertyChangeListener(getModel());
249 SwingUtilities.replaceUIInputMap(fc, JComponent.
251 SwingUtilities.replaceUIActionMap(fc, null);
255 protected void installDefaults(JFileChooser fc) {
256 installIcons(fc);
257 installStrings(fc);
260 TransferHandler th = fc.getTransferHandler();
262 fc.setTransferHandler(defaultTransferHandler);
264 LookAndFeel.installProperty(fc, "opaque", Boolean.FALSE);
267 protected void installIcons(JFileChooser fc) {
282 protected void installStrings(JFileChooser fc) {
284 Locale l = fc.getLocale();
318 protected void uninstallDefaults(JFileChooser fc) {
319 uninstallIcons(fc);
320 uninstallStrings(fc);
321 if (fc.getTransferHandler() instanceof UIResource) {
322 fc.setTransferHandler(null);
326 protected void uninstallIcons(JFileChooser fc) {
341 protected void uninstallStrings(JFileChooser fc) {
368 public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) {
386 public void rescanCurrentDirectory(JFileChooser fc) {
389 public void ensureFileIsVisible(JFileChooser fc, File f) {
400 protected JButton getApproveButton(JFileChooser fc) {
404 public JButton getDefaultButton(JFileChooser fc) {
405 return getApproveButton(fc);
408 public String getApproveButtonToolTipText(JFileChooser fc) {
409 String tooltipText = fc.getApproveButtonToolTipText();
414 if(fc.getDialogType() == JFileChooser.OPEN_DIALOG) {
416 } else if(fc.getDialogType() == JFileChooser.SAVE_DIALOG) {
438 protected MouseListener createDoubleClickListener(JFileChooser fc,
443 public ListSelectionListener createListSelectionListener(JFileChooser fc) {
661 public FileFilter getAcceptAllFileFilter(JFileChooser fc) {
666 public FileView getFileView(JFileChooser fc) {
674 public String getDialogTitle(JFileChooser fc) {
675 String dialogTitle = fc.getDialogTitle();
678 } else if (fc.getDialogType() == JFileChooser.OPEN_DIALOG) {
680 } else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) {
683 return getApproveButtonText(fc);
688 public int getApproveButtonMnemonic(JFileChooser fc) {
689 int mnemonic = fc.getApproveButtonMnemonic();
692 } else if (fc.getDialogType() == JFileChooser.OPEN_DIALOG) {
694 } else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) {
701 public String getApproveButtonText(JFileChooser fc) {
702 String buttonText = fc.getApproveButtonText();
705 } else if (fc.getDialogType() == JFileChooser.OPEN_DIALOG) {
707 } else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) {
763 JFileChooser fc = getFileChooser();
764 File currentDirectory = fc.getCurrentDirectory();
768 fc,
776 newFolder = fc.getFileSystemView().createNewFolder(currentDirectory);
777 if (fc.isMultiSelectionEnabled()) {
778 fc.setSelectedFiles(new File[] { newFolder });
780 fc.setSelectedFile(newFolder);
784 fc,
790 fc.rescanCurrentDirectory();
802 JFileChooser fc = getFileChooser();
803 changeDirectory(fc.getFileSystemView().getHomeDirectory());
1139 JFileChooser fc = getFileChooser();
1140 fc.setCurrentDirectory(fc.getFileSystemView().createFileObject(getDirectoryName()));
1141 fc.rescanCurrentDirectory();
1147 JFileChooser fc = getFileChooser();
1149 if (dir != null && FilePane.usesShellFolder(fc)) {
1158 if (fc.isTraversable(linkedTo)) {
1171 fc.setCurrentDirectory(dir);
1172 if (fc.getFileSelectionMode() == JFileChooser.FILES_AND_DIRECTORIES &&
1173 fc.getFileSystemView().isFileSystem(dir)) {