} else { nextItem.setIcon(type.getIcon());
		private void loadImages(MenuElement menu) {			final MenuElement[] elements = menu.getSubElements();			for (int i = 0; i < elements.length; i++) {				if (!(elements[i] instanceof JMenu)) {					String typeCode = ((Component) elements[i])						.getAccessibleContext().getAccessibleName();					final AssetType type = AssetManager.getAssetType(typeCode);					// because the way that popups work, there may be some menus					// whose only child is a popupmenu, in that case, we want					// the children of the popup menu to be processed					if (elements[i] instanceof JPopupMenu) {						loadImages(elements[i]);					} else {						final JMenuItem nextItem = (JMenuItem) elements[i];						// Use an initial loadingIcon and fetch the actual icon						// in a thread						if (!type.isIconLoaded()) {							nextItem.setIcon(GUIUtilities.getAssetMapIcon(DEFAULT_ASSET_ICON));							SwingWorker worker = new SwingWorker() {								public Object construct() {									Icon icon = type.getIcon();									nextItem.setIcon(icon);									return null;								}							};							worker.start();						}					}				}//end if			}//end for		}