Page 1 of 1

Popup Menu

PostPosted: Thu Sep 08, 2011 5:57 pm
by Garantisoft
Do you have an example of a popup menu?

Re: Popup Menu

PostPosted: Thu Sep 08, 2011 7:41 pm
by rjahn
Show a popup as you would do it with other technologies, for example:

Code: Select all
..
component.eventMouseClicked().addListener(this, "doPopup");

public void doPopup(UIMouseEvent pEvent)
{
   UIPopupMenu pop = new UIPopupMenu();
   pop.add(new UIMenuItem("Details"));

   pop.show(pEvent.getSource(), pEvent.getX(), pEvent.getY());
}