From 251389fde5a3ae708d61d113bb55d934729f18db Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Fri, 27 Apr 2018 15:40:15 -0700 Subject: Fix bugs --- src/bjc/imgchain/ImgPipeline.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/bjc/imgchain/ImgPipeline.java') diff --git a/src/bjc/imgchain/ImgPipeline.java b/src/bjc/imgchain/ImgPipeline.java index 0e4a7d9..ff67679 100644 --- a/src/bjc/imgchain/ImgPipeline.java +++ b/src/bjc/imgchain/ImgPipeline.java @@ -93,12 +93,14 @@ public class ImgPipeline extends JInternalFrame { stageEditor.removeAll(); - stageEditor.add(stag.getEditor(), BorderLayout.CENTER); - border.setTitle(stag.name()); + if (stag != null) { + stageEditor.add(stag.getEditor(), BorderLayout.CENTER); + border.setTitle(stag.name()); + } stageEditor.repaint(); }); - + JScrollPane stageScroll = new JScrollPane(stageList); JPanel listPanel = new JPanel(); @@ -148,6 +150,7 @@ public class ImgPipeline extends JInternalFrame { */ stag = new ColorSkewStage(.393, .769, .189, .349, .686, .168, .272, .534, .131); } + break; case "Negative": { stag = new NegativeStage(); } @@ -160,7 +163,7 @@ public class ImgPipeline extends JInternalFrame { stag = new BrightnessStage(); } break; - case "Threshold": { + case "Colorized Threshold": { stag = new ThresholdStage(); } break; -- cgit v1.2.3