[vtkusers] Menu inside VTK Canvas

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Jul 19 12:46:54 EDT 2011


Yes that's it.
But, you will have to set the proper flag on your JPopupMenu so it
will be display above the VTK awt component.
I've previously talked about it in the mailing list, but here is the
interesting link:
- http://java.sun.com/products/jfc/tsc/articles/mixing/

Seb

On Tue, Jul 19, 2011 at 12:34 PM, Romain LEGUAY <romain.leguay at gmail.com> wrote:
> Hi Sebastien,
> Thanks for your answer.
> I create an RCP Eclipse application so I have got many views and my VTK
> Canevas is inside a SWT frame.
> If I understand your answer, I just need to get the focus of the window,
> capture the "Right Click Event" and display a Java/Swing component, don't I?
> Romain
>
> 2011/7/19 Sebastien Jourdain <sebastien.jourdain at kitware.com>
>>
>> Hi Romain,
>>
>> you should be able to do it like any other Java/Swing component. The
>> only thing is to set your popup menu to be lightweight.
>>
>> Seb
>>
>> On Tue, Jul 19, 2011 at 12:19 PM, Romain LEGUAY <romain.leguay at gmail.com>
>> wrote:
>> > Hello everyone,
>> > I don't find any info on the implementation of a subMenu inside a VTK
>> > Canvas. I would like when I right click inside the Vtk Canvas a subMenu
>> > with
>> > just two actions (wireframe and solid).
>> > Does anyone do something like this?
>> > Thanks,
>> > Romain LEGUAY
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the VTK FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>> >
>
>



More information about the vtkusers mailing list