This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

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: 35
Joined: Sun Sep 13, 2009 1:54 pm


Return to Development