Example #1
0
 /** Remove all types from the menu. Then cycle through all available values, and add them. */
 public static void populateSpecialFieldMenu(JMenu menu, SpecialField field, JabRefFrame frame) {
   menu.setText(field.getMenuString());
   menu.setIcon(((IconTheme.FontBasedIcon) field.getRepresentingIcon()).createSmallIcon());
   for (SpecialFieldValue val : field.getValues()) {
     menu.add(val.getMenuAction(frame));
   }
 }
Example #2
0
 /** Remove all types from the menu. Then cycle through all available values, and add them. */
 public static void populateSpecialFieldMenu(JMenu menu, SpecialField field, JabRefFrame frame) {
   // menu.removeAll();
   menu.setText(field.getMenuString());
   menu.setIcon(field.getRepresentingIcon());
   for (SpecialFieldValue val : field.getValues()) {
     menu.add(val.getMenuAction(frame));
   }
 }