MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / addCheckboxItem

Method addCheckboxItem

ij/src/main/java/ij/Menus.java:494–502  ·  view source on GitHub ↗
(Menu menu, String label, String className)

Source from the content-addressed store, hash-verified

492 }
493
494 CheckboxMenuItem addCheckboxItem(Menu menu, String label, String className) {
495 pluginsTable.put(label, className);
496 nPlugins++;
497 CheckboxMenuItem item = new CheckboxMenuItem(label);
498 menu.add(item);
499 item.addItemListener(ij);
500 item.setState(false);
501 return item;
502 }
503
504 static Menu addSubMenu(Menu menu, String name) {
505 String value;

Callers 1

addMenuBarMethod · 0.95

Calls 3

setStateMethod · 0.80
addMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected