/** * Builds a file chooser with the given file filters, * as well as an "All supported file types" combo filter. */ public static JFileChooser buildFileChooser(final FileFilter[] filters) { return buildFileChooser(filters, true); }
/** * Builds a file chooser with the given file filters, * as well as an "All supported file types" combo filter. */ public static JFileChooser buildFileChooser(final FileFilter[] filters) { return buildFileChooser(filters, true); }
/** Constructs a file chooser for the given file format handler. */ public static JFileChooser buildFileChooser(IFormatHandler handler) { return buildFileChooser(handler, true); }
/** Constructs a file chooser for the given file format handler. */ public static JFileChooser buildFileChooser(IFormatHandler handler) { return buildFileChooser(handler, true); }
/** * Constructs a file chooser for the given file format handler. * If preview flag is set, chooser has an preview pane showing * a thumbnail and other information for the selected file. */ public static JFileChooser buildFileChooser(IFormatHandler handler, boolean preview) { return buildFileChooser(buildFileFilters(handler), preview); }
/** * Constructs a file chooser for the given file format handler. * If preview flag is set, chooser has an preview pane showing * a thumbnail and other information for the selected file. */ public static JFileChooser buildFileChooser(IFormatHandler handler, boolean preview) { return buildFileChooser(buildFileFilters(handler), preview); }
rc = GUITools.buildFileChooser(swap); wc = GUITools.buildFileChooser(writer);
rc = GUITools.buildFileChooser(swap); wc = GUITools.buildFileChooser(writer);
if ("open".equals(cmd)) { wait(true); JFileChooser chooser = GUITools.buildFileChooser(myReader); wait(false); int rval = chooser.showOpenDialog(this); JFileChooser chooser = GUITools.buildFileChooser(myWriter); wait(false); int rval = chooser.showSaveDialog(this);
if ("open".equals(cmd)) { wait(true); JFileChooser chooser = GUITools.buildFileChooser(myReader); wait(false); int rval = chooser.showOpenDialog(this); JFileChooser chooser = GUITools.buildFileChooser(myWriter); wait(false); int rval = chooser.showSaveDialog(this);
JFileChooser fc = GUITools.buildFileChooser(new ImageWriter(), false); fc.setDialogTitle("Bio-Formats Exporter"); String defaultDir = OpenDialog.getDefaultDirectory();
JFileChooser fc = GUITools.buildFileChooser(new ImageWriter(), false); fc.setDialogTitle("Bio-Formats Exporter"); String defaultDir = OpenDialog.getDefaultDirectory();