* Rename getMenuImageIcon to getImageIcon2. Leave out this file in previous commit.
This commit is contained in:
parent
360f80a36b
commit
8ba073d30f
|
@ -1286,12 +1286,15 @@ public final class Env
|
||||||
} // getImageIcon
|
} // getImageIcon
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get ImageIcon. Will try .gif then .png
|
* Get ImageIcon. This method different from getImageIcon
|
||||||
|
* where the fileName parameter is without extension. The
|
||||||
|
* method will first try .gif and then .png if .gif does not
|
||||||
|
* exists.
|
||||||
*
|
*
|
||||||
* @param fileName file name in imgaes folder without the extension(e.g. Bean16)
|
* @param fileName file name in imgaes folder without the extension(e.g. Bean16)
|
||||||
* @return image
|
* @return image
|
||||||
*/
|
*/
|
||||||
public static ImageIcon getMenuImageIcon (String fileName)
|
public static ImageIcon getImageIcon2 (String fileName)
|
||||||
{
|
{
|
||||||
URL url = Adempiere.class.getResource("images/" + fileName+".gif");
|
URL url = Adempiere.class.getResource("images/" + fileName+".gif");
|
||||||
if (url == null)
|
if (url == null)
|
||||||
|
@ -1302,7 +1305,7 @@ public final class Env
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return new ImageIcon(url);
|
return new ImageIcon(url);
|
||||||
} // getImageIcon
|
} // getImageIcon2
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue