* Rename getMenuImageIcon to getImageIcon2. Leave out this file in previous commit.

This commit is contained in:
Heng Sin Low 2006-11-30 03:05:56 +00:00
parent 360f80a36b
commit 8ba073d30f
1 changed files with 6 additions and 3 deletions

View File

@ -1286,12 +1286,15 @@ public final class Env
} // 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)
* @return image
*/
public static ImageIcon getMenuImageIcon (String fileName)
public static ImageIcon getImageIcon2 (String fileName)
{
URL url = Adempiere.class.getResource("images/" + fileName+".gif");
if (url == null)
@ -1302,7 +1305,7 @@ public final class Env
return null;
}
return new ImageIcon(url);
} // getImageIcon
} // getImageIcon2
/***************************************************************************