* 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:
parent
f5627338a5
commit
5c03ba3cb6
|
@ -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 |
Loading…
Reference in New Issue