Lines Matching refs:menuItem
76 abstract void add(Object menuItem);
197 void add(Object menuItem) {
198 delegate.add((JMenuItem)menuItem);
206 JMenuItem menuItem;
208 menuItem = new JCheckBoxMenuItem(label, true);
210 menuItem = new JMenuItem(label);
212 menuItem.setActionCommand(command);
213 menuItem.addActionListener(this);
214 menuItem.setEnabled(command != null);
216 ((JMenu)targetMenu).add(menuItem);
218 ((JPopupMenu)targetMenu).add(menuItem);
255 void add(Object menuItem) {
256 delegate.add((MenuItem)menuItem);
264 MenuItem menuItem;
266 menuItem = new CheckboxMenuItem(label, true);
268 menuItem = new MenuItem(label);
270 menuItem.setActionCommand(command);
271 menuItem.addActionListener(this);
272 menuItem.setEnabled(command != null);
273 ((Menu)targetMenu).add(menuItem);