oldValue);
}
table.putDefaults(menuDefaults);
/* they have the same MenuItemCheckIconFactory */
VistaMenuItemCheckIconFactory menuItemCheckIconFactory =
WindowsIconFactory.getMenuItemCheckIconFactory();
for (int i = 0, j = 0; i < menuClasses.length; i++) {
String key = menuClasses[i] + ".checkIconFactory";
Object oldValue = table.get(key);
menuDefaults[j++] = key;
menuDefaults[j++] =
new XPValue(menuItemCheckIconFactory, oldValue);
}
table.putDefaults(menuDefaults);
for (int i = 0, j = 0; i < menuClasses.length; i++) {
String key = menuClasses[i] + ".checkIcon";
Object oldValue = table.get(key);
menuDefaults[j++] = key;
menuDefaults[j++] =
new XPValue(menuItemCheckIconFactory.getIcon(menuClasses[i]),
oldValue);
}
table.putDefaults(menuDefaults);