MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0007107 | VTK | (No Category) | public | 2008-05-27 11:59 | 2016-08-12 09:54 |
| Reporter | Jerome Robert | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0007107: [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() { @Override public void removeNotify(){} } Note that I don't understand why this fix the bug and that it's probably not a clean solution. | ||||
| Steps To Reproduce | |||||
| 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 http://www.vtk.org/Bug/view.php?id=6287 [^] 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); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JSplitPane pane = new JSplitPane(); frame.getContentPane().add(pane); pane.add(createCanvas(), JSplitPane.BOTTOM); pane.add(createCanvas(), JSplitPane.TOP); frame.setVisible(true); } } | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||