/** Remove all types from the menu. Then cycle through all available types, and add them. */ private void populateTypeMenu() { typeMenu.removeAll(); for (String key : BibtexEntryType.getAllTypes()) { typeMenu.add(new ChangeTypeAction(BibtexEntryType.getType(key), panel)); } }