I think the problem is known and it is the icompatibility AWT and Swing. <br>Canvas is incompatible with JSplitPane.<br>If someone has ANY idea, please post it.<br><div class="gmail_quote"><br>----------------------------------------------------------<br>
----------------------------------------------------------<br>Hello,<br>i have a Jsplitpane which divdes the window into two sides, left and right.<br>In left side i add a vtkCanvas with a vtkvolume in it (say c1).<br>In right side i also add a vtkCanvas with a vtkvolume (the canvas can be c2 or c3).<br>

I have JCheckButton which defines which vtkvolume to add in right side (c2 or c3).<br>c1,c2,c3 are vtkCanvas with a vtkVolume in them.<br><br>I use split.setLeftComponent(c1) and split.setRightComponent(c2)<br><br>When i run the program for the first time, everything is ok.<br>

I press JCheckButton and c3 replaces c2.--&gt;ok<br>I press again JCheckButton and nothing appears! It is supposed to appear c2 again.<br>I&#39;ve tried every possible way of validate, repaint, etc.<br>I noticed that if i set  split.setRightComponent(new vtkCanvas()), instead of  split.setRightComponent(c2), it works (in terms of it appears the Canvas...)<br>

I think that there is something wrong with the paint() and/or upadate() method in vtkCanvas, vtkPanel and Canvas.<br><br>I would appreciate every help.<br>
</div><br>