/** @see blackberry.core.ScriptableFunctionBase#execute(Object, Object[]) */ public Object execute(Object thiz, Object[] args) throws Exception { // Get the screen that currently owns the BrowserField MainScreen screen = (MainScreen) MenuExtension.getBrowserField().getScreen(); ShowMenu thread = new ShowMenu(screen.getMenu(Menu.INSTANCE_DEFAULT)); screen.getApplication().invokeLater(thread); return UNDEFINED; }