throw new UnsupportedOperationException("not implemented");
MenuElement[] selection = (MenuElement[]) selectedPath.toArray(new MenuElement[selectedPath.size()]); MenuElement[] path; for (int index = selection.length - 1; index >= 0; index--) { MenuElement el = selection[index];      MenuElement[] subEls = el.getSubElements(); path = null; for (int subIndex = 0; subIndex < subEls.length; subIndex++) { MenuElement sub = subEls[subIndex];  if (sub == null || ! sub.getComponent().isShowing() || ! sub.getComponent().isEnabled()) { continue; }  if (path == null) { path = new MenuElement[index + 2]; System.arraycopy(selection, 0, path, 0, index + 1); } path[index + 1] = sub; sub.processKeyEvent(e, path, this); if (e.isConsumed()) break; } if (e.isConsumed()) break; }   if (! e.isConsumed()) { path = new MenuElement[1]; path[0] = selection[0]; path[0].processKeyEvent(e, path, this); }
  public void processKeyEvent(KeyEvent e)    throws NotImplementedException  {    throw new UnsupportedOperationException("not implemented");  }