View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007107VTK(No Category)public2008-05-27 11:592016-08-12 09:54
ReporterJerome Robert 
Assigned ToKitware Robot 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007107: [VTK JAVA] vtkCanvas with JSplitterPane crash on Windows
Description- Add 2 vtkCanvas to a JSplitterPane
- vtkCanvas are properly displayed
- Move the split bar
- vtkCanvas are no longer displayed

This only happen on Windows. It does not happen if JSplitterPane.setContinuousLayout(true) is called before. A workaround is to create the vtkCanvas as this:

vtkCanvas toReturn = new vtkCanvas()
    public void removeNotify(){}

Note that I don't understand why this fix the bug and that it's probably not a clean solution.
Additional Information/** A program to reproduce the bug */

import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.WindowConstants;
import vtk.vtkActor;
import vtk.vtkCanvas;

 * @author Jerome Robert
public class BugJSplitter
    private static vtkCanvas createCanvas()
        vtkCanvas toReturn = new vtkCanvas();
        // see [^]
        toReturn.setMinimumSize(new Dimension(0, 0));
        toReturn.setPreferredSize(new Dimension(0, 0));
        toReturn.GetRenderer().AddActor(new vtkActor());
        return toReturn;
    public static void main(final String[] args)
        JFrame frame = new JFrame();
        frame.setSize(800, 600);
        JSplitPane pane = new JSplitPane();
        pane.add(createCanvas(), JSplitPane.BOTTOM);
        pane.add(createCanvas(), JSplitPane.TOP);
TagsNo tags attached.
Attached Files


Jerome Robert (reporter)
2008-05-27 12:30

Bug seen in current CVS version
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-05-27 11:59 Jerome Robert New Issue
2008-05-27 12:30 Jerome Robert Note Added: 0012121
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036978
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot

Copyright © 2000 - 2018 MantisBT Team