* Add png support for menu icon

* A better logout menu icon
* Reduce missing menu icon log level from SEVERE to WARNING
This commit is contained in:
Heng Sin Low 2006-11-29 09:14:25 +00:00
parent f5627338a5
commit 5c03ba3cb6
2 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,8 @@ public final class AEnv
if (iconName == null)
iconName = actionName;
String text = Msg.getMsg(Env.getCtx(), actionName);
CMenuItem mi = new CMenuItem(text, Env.getImageIcon(iconName + "16.gif"));
ImageIcon icon = Env.getMenuImageIcon(iconName + "16");
CMenuItem mi = new CMenuItem(text, icon);
mi.setActionCommand(actionName);
if (ks != null)
mi.setAccelerator(ks);

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B