Java JMenuItem useCheckAndArrow(JMenuItem menuItem)

Here you can find the source of useCheckAndArrow(JMenuItem menuItem)

Description

use Check And Arrow

License

Open Source License

Declaration

private static boolean useCheckAndArrow(JMenuItem menuItem) 

Method Source Code

//package com.java2s;

import javax.swing.JMenu;
import javax.swing.JMenuItem;

public class Main {
    private static boolean useCheckAndArrow(JMenuItem menuItem) {
        boolean b = true;
        if ((menuItem instanceof JMenu)
                && (((JMenu) menuItem).isTopLevelMenu())) {
            b = false;/*from   ww w  . j a  v a 2 s.  c  o m*/
        }
        return b;
    }
}

Related

  1. setKeystroke(JMenuItem m, int key)
  2. setMnemonic(JMenuItem item, String label, int index)
  3. syncMenuItem(final JMenuItem source, final JMenuItem dest)
  4. updateFilesOpenedMenuItems(File fx, LinkedHashMap filesOpened, ActionListener actionListener)
  5. useCheckAndArrow(JMenuItem menuItem)