Package com.hexidec.ekit.component

Examples of com.hexidec.ekit.component.ImageFileChooser


  public String getImageWidth()  { return imageWidth; }
  public String getImageHeight() { return imageHeight; }

  public File browseForImage()
  {
    ImageFileChooser jImageDialog = new ImageFileChooser(imageDir);
    jImageDialog.setDialogType(JFileChooser.CUSTOM_DIALOG);
    jImageDialog.setFileFilter(new MutableFilter(imageExts, imageDesc));
    jImageDialog.setDialogTitle(Translatrix.getTranslationString("ImageDialogTitle"));
    int optionSelected = JFileChooser.CANCEL_OPTION;
    optionSelected = jImageDialog.showDialog(this, Translatrix.getTranslationString("Insert"));
    if(optionSelected == JFileChooser.APPROVE_OPTION)
    {
      return jImageDialog.getSelectedFile();
    }
    return (File)null;
  }
View Full Code Here

TOP

Related Classes of com.hexidec.ekit.component.ImageFileChooser

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.