LOGOUT IN MENUBAR ! HELP :)

HI TO ALL

I NEED TO ADD A LOGOUT IN MENUBAR.
IF I CAN’T PUT A LINK (COMPONENT) IN THE MENUBAR, How can I implement this request?

THANK IN ADVICE
CIAO -_-

is correct ?

if(selectedItem == logout)
{
Resource logoutResource = new ExternalResource( … );

getMainWindow().open(logoutResource);

}

Please do not use caps lock.

You can accomplish this by adding a command to your logout menu item

MenuBar mb = new MenuBar();
mb.addItem("Logout", new MenuBar.Command() {
       public void menuSelected(MenuItem selectedItem) {
             getApplication().close();
       }
});

perfect…thank you John
i have setted the logouturl
work perfect
:smiley: