A GUIWire now can trigger a redraw
[Mograsim.git] / LogicUI / src / era / mi / examples / gui / LogicUI.java
index 5c77574..82528d1 100644 (file)
@@ -100,7 +100,7 @@ public class LogicUI
        }\r
        private void addWire(BasicGUIComponent component1, int component1ConnectionIndex, BasicGUIComponent component2, int component2ConnectionIndex, Point... path)\r
        {\r
-               wires.add(new GUIWire(component1, component1ConnectionIndex, componentPositions.get(component1), component2, component2ConnectionIndex, componentPositions.get(component2), path));\r
+               wires.add(new GUIWire(canvas::redrawThreadsafe, component1, component1ConnectionIndex, componentPositions.get(component1), component2, component2ConnectionIndex, componentPositions.get(component2), path));\r
        }\r
        private void drawComponent(GeneralGC gc, BasicGUIComponent component)\r
        {\r