From d88dc12765fd659bcb346f77a050c64b7e3d1556 Mon Sep 17 00:00:00 2001 From: dietzc Date: Wed, 9 Jul 2014 13:25:13 +0200 Subject: [PATCH] Images are shown directly (no click needed anymore). --- .../org/knime/knip/imagej3d/ImageJ3DTableCellView.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.knime.knip.imagej3d.base/src/org/knime/knip/imagej3d/ImageJ3DTableCellView.java b/org.knime.knip.imagej3d.base/src/org/knime/knip/imagej3d/ImageJ3DTableCellView.java index 48bd48b..4f46aa7 100644 --- a/org.knime.knip.imagej3d.base/src/org/knime/knip/imagej3d/ImageJ3DTableCellView.java +++ b/org.knime.knip.imagej3d.base/src/org/knime/knip/imagej3d/ImageJ3DTableCellView.java @@ -55,6 +55,7 @@ import ij3d.Content; import ij3d.ContentConstants; import ij3d.Image3DUniverse; +import ij3d.ImageWindow3D; import java.awt.BorderLayout; import java.awt.Color; @@ -66,6 +67,7 @@ import java.awt.Rectangle; import java.awt.RenderingHints; +import javax.media.j3d.Canvas3D; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; @@ -122,7 +124,7 @@ public class ImageJ3DTableCellView> implements // rendering Universe private Image3DUniverse m_universe; - private Component m_universePanel; + private Canvas3D m_universePanel; // Container for the converted picture, private ImagePlus m_ijImagePlus; @@ -343,6 +345,7 @@ protected void done() { } // + m_universe.init(new ImageWindow3D("abc", m_universe)); m_universePanel = m_universe.getCanvas(0); try { @@ -361,6 +364,7 @@ protected void done() { } } + WaitingIndicatorUtils.setWaiting(m_rootPanel, false); // enables the timeline gui if picture has 4 or 5 @@ -376,6 +380,8 @@ protected void done() { } else { m_panel4D.setVisible(false); } + + m_rootPanel.updateUI(); } };