From 8ba073d30fd3b6946b748c6fc6e38b29a154ba65 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 30 Nov 2006 03:05:56 +0000 Subject: [PATCH] * Rename getMenuImageIcon to getImageIcon2. Leave out this file in previous commit. --- dbPort/src/org/compiere/util/Env.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dbPort/src/org/compiere/util/Env.java b/dbPort/src/org/compiere/util/Env.java index 27e463c21b..28fada88dd 100644 --- a/dbPort/src/org/compiere/util/Env.java +++ b/dbPort/src/org/compiere/util/Env.java @@ -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 /***************************************************************************