JCheckBoxMenuItem
495051525354555657
} @Override protected List<? extends JMenuItem> getMenuItems() { List<JMenuItem> items = Lists.newArrayList(); items.add(new KongaCheckBoxMenuItem(sourceAction)); items.add(new KongaCheckBoxMenuItem(targetAction)); return items; }
487488489490491492493494495496
private JPopupMenu createPopup() { JPopupMenu popup = new JPopupMenu(); for (StringSearchRule o : options) { Action action = new OptionAction(o); JMenuItem item = new KongaCheckBoxMenuItem(action); popup.add(item); } return popup; }