Author: tchemit Date: 2008-01-20 12:11:21 +0000 (Sun, 20 Jan 2008) New Revision: 237 Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/UIHelper.java Log: reformattage + pb licence (TODO Voir la licence ?\195?\160 utiliser) Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/UIHelper.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/UIHelper.java 2008-01-20 12:10:29 UTC (rev 236) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/UIHelper.java 2008-01-20 12:11:21 UTC (rev 237) @@ -1,5 +1,5 @@ /* -* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, * Tony Chemit * * This program is free software; you can redistribute it and/or @@ -15,21 +15,20 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -* \#\#% */ +* ##% */ package fr.cemagref.simexplorer.is.ui.swing; import javax.swing.ImageIcon; -import javax.swing.Icon; /** @author tony */ public class UIHelper { - + public static ImageIcon createImageIcon(String path) { java.net.URL imgURL = UIHelper.class.getResource("/icons/" + path); if (imgURL != null) { return new ImageIcon(imgURL); } else { - throw new RuntimeException("could not foind icon "+path); + throw new RuntimeException("could not foind icon " + path); } }
participants (1)
-
tchemit@users.labs.libre-entreprise.org