MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006287 | VTK | (No Category) | public | 2008-01-30 05:22 | 2016-08-12 09:54 |
Reporter | Jerome Robert | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0006287: vtkCanvas in JSplitter should be resizable | ||||
Description | vtkCanvas 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. | ||||
Steps To Reproduce | |||||
Additional Information | A 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(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 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); canvas.GetRenderer().AddActor(Utils.createDummyActor()); frame.add(split); frame.setSize(800, 600); frame.setVisible(true); } } | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|