Here you can find the source of getIconInterTrial()
public static ImageIcon getIconInterTrial()
//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; } }