PDA

View Full Version : combinated contextmenu



Stephan123
27 Aug 2009, 6:51 AM
Hello !

I need an idea.
I have build an application with borderlayout.
In the center-region there are grids or forms.

When a grid is in the 'center' the grid has an contextmenu.
That is O.K. !

When in the 'center' is an form, i need an
empty or special menu on rightclick.

I think the best way is in a combination of 2 contextmenu.

Version 1 is the 'general contextmenu' for all parts of the application.
Version 2 is the 'general contextmenu' + 'contextmenu for the grid'.

Who has an idea or plugin ?


Your sincerly

Stephan

Animal
27 Aug 2009, 6:54 AM
You could use a beforeshow listener, and have a single Menu and hide/show different options in it, depending on... context!