* Fill in icons (if there is no icon, put in an empty icon).
*/
private static void fillInIcons(MenuElement menuElement) {
MenuElement[] elements = menuElement.getSubElements();
for (int i = 0; i < elements.length; i++) {
MenuElement element = elements[i];
if (element instanceof JMenuItem) {
JMenuItem menu = (JMenuItem)element;
if (menu.getIcon() == null) {
menu.setIcon(EmptyIcon.SMALL);
}