Java Swing Icon getIconInterTrial()

Here you can find the source of getIconInterTrial()

Description

get Icon Inter Trial

License

BSD License

Declaration

public static ImageIcon getIconInterTrial() 

Method Source Code


//package com.java2s;
/*   TouchStone design platform is a software to design protocols for lab        *
 *   experiments. It is published under the terms of a BSD license               *
 *   (see details below)                                                         *
 *   Author: Caroline Appert (appert@lri.fr)                                     *
 *   Copyright (c) 2010 Caroline Appert and INRIA, France.                       *
 *   TouchStone design platform reuses parts of an early version which were      *
 *   programmed by Matthis Gilbert.                                              *
 *********************************************************************************/

import java.io.File;
import java.net.MalformedURLException;

import javax.swing.ImageIcon;

public class Main {
    private static ImageIcon ICON_INTERTRIAL = null;

    public static ImageIcon getIconInterTrial() {
        if (ICON_INTERTRIAL == null) {
            File iconInterTrialFile = new File("icons" + File.separator + "intertrial.png");
            try {
                ICON_INTERTRIAL = new ImageIcon(iconInterTrialFile.toURI().toURL());
            } catch (MalformedURLException e) {
                e.printStackTrace();//from   w w w.  j  a  v a2 s. c o m
            }
        }
        return ICON_INTERTRIAL;
    }
}

Related

  1. getIcon(String name)
  2. getIcon(String name, boolean isGrayIcon)
  3. getIcon(String name, ClassLoader classLoader)
  4. getIconCheckBox(String iconPath, String pressIconPath, String rolloverIconPath, String selectedIconPath)
  5. getIconFromExtension(String f, boolean folder)
  6. getIcono()
  7. getPressedExitIcon(int x, int y)
  8. getResourceIcon(Object target, String name)
  9. getScaledIcon(Icon icon)