congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GUITools
Code IndexAdd Tabnine to your IDE (free)

How to use
GUITools
in
loci.formats.gui

Best Java code snippets using loci.formats.gui.GUITools (Showing top 18 results out of 315)

origin: ome/formats-bsd

/**
 * 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);
}
origin: ome/formats-bsd

/**
 * 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);
}
origin: ome/formats-bsd

/**
 * Sorts the given list of file filters, keeping the "All supported
 * file types" combo filter (if any) at the front of the list.
 */
private static FileFilter[] sortFilters(FileFilter[] filters) {
 filters = ComboFileFilter.sortFilters(filters);
 shuffleAllTypesToFront(filters);
 return filters;
}
origin: ome/formats-bsd

FileFilter combo = makeComboFilter(sortFilters(comboList));
if (combo != null) filterList.add(combo);
filters = sortFilters(filterList);
 filterList.add(new ExtensionFileFilter(suffixes, format));
filters = sortFilters(filterList);
origin: openmicroscopy/bioformats

FileFilter combo = makeComboFilter(sortFilters(comboList));
if (combo != null) filterList.add(combo);
filters = sortFilters(filterList);
 filterList.add(new ExtensionFileFilter(suffixes, format));
filters = sortFilters(filterList);
origin: openmicroscopy/bioformats

/**
 * 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);
}
origin: openmicroscopy/bioformats

/**
 * 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);
}
origin: ome/formats-bsd

/**
 * Sorts the given list of file filters, keeping the "All supported
 * file types" combo filter (if any) at the front of the list.
 */
private static FileFilter[] sortFilters(Vector filterList) {
 FileFilter[] filters = ComboFileFilter.sortFilters(filterList);
 shuffleAllTypesToFront(filters);
 return filters;
}
origin: ome/formats-bsd

/** Constructs a file chooser for the given file format handler. */
public static JFileChooser buildFileChooser(IFormatHandler handler) {
 return buildFileChooser(handler, true);
}
origin: openmicroscopy/bioformats

/**
 * Sorts the given list of file filters, keeping the "All supported
 * file types" combo filter (if any) at the front of the list.
 */
private static FileFilter[] sortFilters(FileFilter[] filters) {
 filters = ComboFileFilter.sortFilters(filters);
 shuffleAllTypesToFront(filters);
 return filters;
}
origin: openmicroscopy/bioformats

/** Constructs a file chooser for the given file format handler. */
public static JFileChooser buildFileChooser(IFormatHandler handler) {
 return buildFileChooser(handler, true);
}
origin: openmicroscopy/bioformats

/**
 * Sorts the given list of file filters, keeping the "All supported
 * file types" combo filter (if any) at the front of the list.
 */
private static FileFilter[] sortFilters(Vector filterList) {
 FileFilter[] filters = ComboFileFilter.sortFilters(filterList);
 shuffleAllTypesToFront(filters);
 return filters;
}
origin: openmicroscopy/bioformats

rc = GUITools.buildFileChooser(swap);
wc = GUITools.buildFileChooser(writer);
origin: ome/formats-bsd

rc = GUITools.buildFileChooser(swap);
wc = GUITools.buildFileChooser(writer);
origin: ome/formats-bsd

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);
origin: openmicroscopy/bioformats

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);
origin: openmicroscopy/bioformats

JFileChooser fc = GUITools.buildFileChooser(new ImageWriter(), false);
fc.setDialogTitle("Bio-Formats Exporter");
String defaultDir = OpenDialog.getDefaultDirectory();
origin: ome/bio-formats_plugins

JFileChooser fc = GUITools.buildFileChooser(new ImageWriter(), false);
fc.setDialogTitle("Bio-Formats Exporter");
String defaultDir = OpenDialog.getDefaultDirectory();
loci.formats.guiGUITools

Javadoc

A utility class for working with graphical user interfaces.

Most used methods

  • buildFileChooser
    Builds a file chooser with the given file filters, as well as an "All supported file types" combo fi
  • buildFileFilters
    Constructs a list of file filters for the given file format handler.
  • makeComboFilter
    Creates an "All supported file types" combo filter encompassing all of the given filters.
  • shuffleAllTypesToFront
    Looks for an "All supported file types" combo filter and shuffles it to the front of the list.
  • sortFilters
    Sorts the given list of file filters, keeping the "All supported file types" combo filter (if any) a

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • setContentView (Activity)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JComboBox (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now