diff --git a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewFormulaChannelAction.java b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewFormulaChannelAction.java index aee848d..90c58e8 100644 --- a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewFormulaChannelAction.java +++ b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewFormulaChannelAction.java @@ -32,17 +32,13 @@ super("FormulaChannel...", editor); } - @Override public void actionPerformed(ActionEvent e) { - JPanel panel = new JPanel(); - GridLayout layout = new GridLayout(2,2); panel.setLayout(layout); layout.setVgap(5); layout.setHgap(20); - panel.add(new JLabel("Channel Name:")); JTextField channelText = new JTextField(); panel.add(channelText); @@ -59,7 +55,6 @@ String channelName = channelText.getText(); String symbol = symbolText.getText(); - if(r == JOptionPane.OK_OPTION) { editor.addFormulaChannelGenerator(new FormulaChannelGenerator(channelName, editor.getModel().getSymbol(symbol))); }