Popup Menu

General questions regarding the development with JVx.

Popup Menu

Postby Garantisoft » Thu Sep 08, 2011 5:57 pm

Do you have an example of a popup menu?
Garantisoft
 
Posts: 16
Joined: Wed Aug 17, 2011 3:26 pm

Re: Popup Menu

Postby rjahn » Thu Sep 08, 2011 7:41 pm

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());
}
rjahn
 
Posts: 29
Joined: Sun Sep 13, 2009 1:54 pm


Return to Development