Package javax.swing.filechooser

Examples of javax.swing.filechooser.FileFilter


    return Tools.FILEEXT_JWFSCRIPT;
  }

  public JWFScriptFileChooser(Prefs pPrefs) {
    setPreferredSize(new Dimension(800, 600));
    FileFilter filter = new JWFScriptFileFilter();
    addChoosableFileFilter(filter);
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
  }
View Full Code Here


    return Tools.FILEEXT_OBJ;
  }

  public MeshFileChooser(Prefs pPrefs) {
    setPreferredSize(new Dimension(800, 600));
    FileFilter filter = new MeshFileFilter();
    addChoosableFileFilter(filter);
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
  }
View Full Code Here

    return Tools.FILEEXT_JWFRENDER;
  }

  public JWFRenderFileChooser(Prefs pPrefs) {
    setPreferredSize(new Dimension(960, 600));
    FileFilter filter = new JWFRenderFileFilter();
    addChoosableFileFilter(filter);
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
    setAccessory(new JWFRenderFilePreview(this, pPrefs));
  }
View Full Code Here

  }

  public ImageFileChooser(String pDefaultExtension) {
    defaultExtension = pDefaultExtension;
    setPreferredSize(new Dimension(960, 600));
    FileFilter filter = new ImageFileFilter();
    addChoosableFileFilter(filter);
    addChoosableFileFilter(new HDRImageFileFilter());
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
    setAccessory(new ImageFilePreview(this));
View Full Code Here

    return Tools.FILEEXT_SVG;
  }

  public SvgFileChooser(Prefs pPrefs) {
    setPreferredSize(new Dimension(960, 600));
    FileFilter filter = new SvgFileFilter();
    addChoosableFileFilter(filter);
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
    setAccessory(new SvgFilePreview(this));
  }
View Full Code Here

    return Tools.FILEEXT_MAP;
  }

  public MapFileChooser(Prefs pPrefs) {
    setPreferredSize(new Dimension(960, 600));
    FileFilter filter = new MapFileFilter();
    addChoosableFileFilter(filter);
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
    setAccessory(new MapFilePreview(this, pPrefs));
  }
View Full Code Here

    return Tools.FILEEXT_JWFDANCE;
  }

  public JWFDanceFileChooser(Prefs pPrefs) {
    setPreferredSize(new Dimension(800, 600));
    FileFilter filter = new JWFDanceFileFilter();
    addChoosableFileFilter(filter);
    setFileFilter(filter);
    setAcceptAllFileFilterUsed(false);
  }
View Full Code Here

  protected void loadPeriodicsFromFile() throws IOException {
    if (m_fileChooser == null) {
      m_fileChooser =
        new JFileChooser(new File(System.getProperty("user.home")));
      m_fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
      FileFilter filter = new ExtensionFileFilter(".periodics", "Time series date-derived " +
                "periodic attribute definitions (*periodics)");
      m_fileChooser.addChoosableFileFilter(filter);
    }
   
    int result = m_fileChooser.showOpenDialog(this);
View Full Code Here

  public void addModAction() {
    JFileChooser fc = new JFileChooser(prefs.getMinecraftModsDir());
    fc.setDialogTitle("Select Mod");
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
    fc.setMultiSelectionEnabled(true);
    fc.setFileFilter(new FileFilter() {
      @Override
      public String getDescription() {
        return "Mod Files";
      }
View Full Code Here

        if (stackTrace.get(Thread.currentThread())[4].getFileName().contains("AbstractButton")) {
          super.cancelSelection();
        }
      }
    };
    reportFileChooser.addChoosableFileFilter(new FileFilter() {
      @Override
      public boolean accept(File f) {
        if (f == null) {
          return false;
        }
View Full Code Here

TOP

Related Classes of javax.swing.filechooser.FileFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.