[vtk-developers] Focus weirdness with vtkCanvas in Java

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Apr 25 10:00:31 EDT 2013


Hi Frederic,

I don't know what is the history of that method call.
Although, if you are using the latest VTK (the soon to be release), you
should probably use the new set of rendering classes instead. They provide
a cleaner and more flexible API.

To learn how to use them, just look at the sample codes that are available
inside the Wrapping/Java directories.

Seb


On Thu, Apr 25, 2013 at 9:42 AM, TINGAUD Frederic <
Frederic.TINGAUD at murex.com> wrote:

> Hi all,****
>
> ** **
>
> I was wondering why we have the following line in the code of
> vtkCanvas.java:****
>
> public void mouseEntered(MouseEvent e) {****
>
>   this.requestFocus();****
>
>   …****
>
> ** **
>
> It would make sense to me, if we had this requestFocus() in the mousePress
> event (even if java no longer needs it since some time), but in the
> mouseEntered event, it just seems wrong, as it stills the focus and puts on
> top any window containing vtkCanvas, as soon as you hover it.****
>
> Am I missing something here?****
>
> ** **
>
> Regards,****
>
> ** **
>
> Frederic****
>
> *******************************
>
> This e-mail contains information for the intended recipient only. It may
> contain proprietary material or confidential information. If you are not
> the intended recipient you are not authorised to distribute, copy or use
> this e-mail or any attachment to it. Murex cannot guarantee that it is
> virus free and accepts no responsibility for any loss or damage arising
> from its use. If you have received this e-mail in error please notify
> immediately the sender and delete the original email received, any
> attachments and all copies from your system.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130425/8a470f16/attachment.html>


More information about the vtk-developers mailing list