Java JMenuItem setEnabled(boolean enabled, JMenuItem... items)

Here you can find the source of setEnabled(boolean enabled, JMenuItem... items)

Description

set Enabled

License

Open Source License

Declaration

public static void setEnabled(boolean enabled, JMenuItem... items) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.JMenuItem;

public class Main {
    public static void setEnabled(boolean enabled, JMenuItem... items) {
        for (JMenuItem item : items)
            item.setEnabled(enabled);/* w  ww  . j a v  a 2  s . c  o  m*/
    }
}

Related

  1. recursiveUpdateOrInsertMenuItem(MenuElement menu, JMenuItem menuItem, boolean hideOnUpdate)
  2. replaceMenuItem( @Nonnull JMenuItem orginalMenuItem, @Nonnull JMenuItem replacementMenuItem)
  3. setAccelerator(JMenuItem menuItem, int key, int mask)
  4. setCtrlAccelerator(final JMenuItem jmi, final char accelerator)
  5. setCtrlAccelerator(JMenuItem jmi, char accelerator)
  6. setKeystroke(JMenuItem m, int key)
  7. setMnemonic(JMenuItem item, String label, int index)
  8. syncMenuItem(final JMenuItem source, final JMenuItem dest)
  9. updateFilesOpenedMenuItems(File fx, LinkedHashMap filesOpened, ActionListener actionListener)