View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006287VTK(No Category)public2008-01-30 05:222016-08-12 09:54
ReporterJerome Robert 
Assigned ToKitware Robot 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006287: vtkCanvas in JSplitter should be resizable
DescriptionvtkCanvas minimum size and prefered size are not initialised so Swing set them to the last value specified with setSized. So even when a vtkCanvas is used in context where it should be resizable, it's size is frozen. The minimum and prefered size of vtkCanvas should be set to (0,0) in the constructor.
Additional InformationA simple example to show the bug:

import javax.swing.JFrame;
import javax.swing.JSplitPane;
import vtk.vtkCanvas;

public class BugCanvasSize
    public static void main(String[] args)
        JFrame frame = new JFrame();
        JSplitPane split = new JSplitPane();
        vtkCanvas canvas = new vtkCanvas()
            public void setSize(int x, int y)
                super.setSize(x, y);
                System.out.println("Someone has changed my size to "+x+" "+y);
                System.out.println("prefered and min size are now: "+
                    getPreferredSize()+" "+getMinimumSize());
        //Uncomment: Workaround for not resizable vtkCanvas bug.
        //canvas.setMinimumSize(new Dimension(0, 0));
        //canvas.setPreferredSize(new Dimension(0, 0));

        split.add(canvas, JSplitPane.BOTTOM);
        frame.setSize(800, 600);
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
Jerome Robert (reporter)
2008-01-30 05:23

Not sure of that be the bug should probably fixed in vtkPanel, and not in vtkCanvas.
I get this error with revision 1.9 and revision 1.17.
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-01-30 05:22 Jerome Robert New Issue
2008-01-30 05:23 Jerome Robert Note Added: 0010338
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036948
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 - 2017 MantisBT Team
Powered by Mantis Bugtracker