return 0;
int count = 0; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { for (int i = 0; i < me.length; i++) { if (me[i] == JMenu.this) { if (i + 1 < me.length) { count = 1; break; } } } } return count;
    public int getAccessibleSelectionCount()      throws NotImplementedException    {      return 0;    }