SwingMenu extends AbstractSwingContainer implements XulMenu { public String getAccesskey() { return String.valueOf( menu.getText().charAt( menu.getDisplayedMnemonicIndex() ) ); } SwingMenu( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); void layout(); String getAcceltext(); String getAccesskey(); boolean isDisabled(); String getLabel(); void setAcceltext( String accel ); void setAccesskey( String accessKey ); void setDisabled( boolean disabled ); void setLabel( String label ); void resetContainer();  }
@Test public void getAccesskeyTest() throws Exception { assertEquals( "F", menu.getAccesskey() ); }
@Test public void testMenuItemGetAccesskey() throws Exception { XulMenuitem item = (XulMenuitem) doc.getElementById( "paseMenuItem" ); assertEquals( "P", item.getAccesskey() ); }