<div dir="ltr">The error window can be disable (normally). For that look at the sample codes when we disable to output error window. <div style>You can even provide a file path that will be used to dump the error log into. (Provide null otherwise)</div>
<div style><br></div><div style>Seb</div><div style><br></div><div style>PS: For the <span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:15px">ChoosePixelFormat</span>, I don't have much idea, but if you figure out a fix please feel free to contribute.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 12:14 PM, TINGAUD Frederic <span dir="ltr"><<a href="mailto:Frederic.TINGAUD@murex.com" target="_blank">Frederic.TINGAUD@murex.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I tried converting my code to use the new VTK6 java wrappers, and I couldn’t have them to work under Windows.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Even the sample AwtConeRendering.java doesn’t work on my machine, as it always ends up with the dreaded “ChoosePixelFormat failed” error dialog, during the first call to Render().<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">By the way, the fact that this particular error is signaled by an modal error dialog has been a major inconvenience for me since I use VTK. I had the error popping from time to time randomly during my automated tests and I never found a way to pass it correctly when it occurred, I have a robot clicking at the center of the screen when the test has been hanging for suspiciously too long, but the dialog can also appear behind the frame, in which case I am just doomed and I have to connect to the machine and unblock it manually.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Fred<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-bounces@vtk.org</a> [mailto:<a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-bounces@vtk.org</a>] <b>De la part de</b> Sebastien Jourdain<br>
<b>Envoyé :</b> jeudi 25 avril 2013 17:39</span></p><div><div class="h5"><br><b>À :</b> TINGAUD Frederic<br><b>Cc :</b> <a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br><b>Objet :</b> Re: [vtk-developers] Focus weirdness with vtkCanvas in Java<u></u><u></u></div>
</div><p></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Yes I'm talking about them, but mostly the awt one unless you are using swt...<u></u><u></u></p><div><p class="MsoNormal">
To use the swt one, you will need to provide enough information to cmake at build time...<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Seb<u></u><u></u></p></div></div>
<div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Thu, Apr 25, 2013 at 11:24 AM, TINGAUD Frederic <<a href="mailto:Frederic.TINGAUD@murex.com" target="_blank">Frederic.TINGAUD@murex.com</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Are you talking about the vtkAwtComponent /vtkSwtComponent? I didn’t knew about them, it is cool to see that java wrapper are evolving! I will have a look at them.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Frederic</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Sebastien Jourdain [mailto:<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>] <br>
<b>Envoyé :</b> jeudi 25 avril 2013 16:01<br><b>À :</b> TINGAUD Frederic<br><b>Cc :</b> <a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br><b>Objet :</b> Re: [vtk-developers] Focus weirdness with vtkCanvas in Java</span><u></u><u></u></p>
<div><div><p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p><div><p class="MsoNormal">Hi <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Frederic,</span><u></u><u></u></p>
<div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">I don't know what is the history of that method call.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">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.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">To learn how to use them, just look at the sample codes that are available inside the Wrapping/Java directories.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Seb</span><u></u><u></u></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
 <u></u><u></u></p><div><p class="MsoNormal">On Thu, Apr 25, 2013 at 9:42 AM, TINGAUD Frederic <<a href="mailto:Frederic.TINGAUD@murex.com" target="_blank">Frederic.TINGAUD@murex.com</a>> wrote:<u></u><u></u></p><div>
<div><p class="MsoNormal"><span lang="EN-US">Hi all,</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US">I was wondering why we have the following line in the code of vtkCanvas.java:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">public void mouseEntered(MouseEvent e) {</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">  this.requestFocus();</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">  …</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US">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.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Am I missing something here?</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US">Frederic</span><u></u><u></u></p></div><p style="margin:0cm;margin-bottom:.0001pt;line-height:14.25pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#2a2a2a">*******************************</span><u></u><u></u></p>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:14.25pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">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. </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#2a2a2a">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.</span><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><u></u><u></u></p></div><p class="MsoNormal">
 <u></u><u></u></p></div></div></div></div><div><div><p style="margin:0cm;margin-bottom:.0001pt;line-height:14.25pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#2a2a2a">*******************************<u></u><u></u></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:14.25pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial","sans-serif"">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. </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#2a2a2a">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.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#2a2a2a"><u></u><u></u></span></p>
</div></div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><div><div class="h5"><p style="line-height:19px;margin:0px 0px 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:#2a2a2a">
*******************************</p><p style="line-height:19px;margin:0px 0px 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:#2a2a2a"><span lang="EN-GB" style="line-height:17px;font-size:10pt;color:black;font-family:Arial">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. </span><span style="font-family:Arial" color="black" size="2"><span style="line-height:17px;font-size:10pt">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.</span></span></p>
</div></div></div></blockquote></div><br></div>