diff --git a/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/swing/ComponentTextReceiver.java b/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/swing/ComponentTextReceiver.java index 69badc8..5ab8b63 100644 --- a/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/swing/ComponentTextReceiver.java +++ b/AlgebraicDataflowArchitectureModel/src/simulator/interfaces/swing/ComponentTextReceiver.java @@ -27,11 +27,11 @@ Expression text = ((Term) message).getChild(0); if (text instanceof Constant) { if (component instanceof JTextComponent) { - ((JTextComponent) component).setText(((Constant) text).getSymbol().getName()); + ((JTextComponent) component).setText((String) ((Constant) text).getValue()); } else if (component instanceof JLabel) { - ((JLabel) component).setText(((Constant) text).getSymbol().getName()); + ((JLabel) component).setText((String) ((Constant) text).getValue()); } else if (component instanceof JButton) { - ((JButton) component).setText(((Constant) text).getSymbol().getName()); + ((JButton) component).setText((String) ((Constant) text).getValue()); } } }