X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fexamples%2FRSLatchGUIExample.java;h=dc6091f667d9a8700cfbb3a9a71c6485d381692e;hb=6ab8014cf6bb882187ab4d22fdf460dc0adbc2ab;hp=cb5f17800ca77093eb3b9f820e3d9672de86fce2;hpb=6c67a9ff8361cd9fc082f40e2676f2c8b5911fe4;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java b/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java index cb5f1780..dc6091f6 100644 --- a/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java +++ b/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java @@ -15,16 +15,16 @@ public class RSLatchGUIExample private static final int WIRE_DELAY = 10; private static final int OR_DELAY = 50; private static final int NOT_DELAY = 50; - private static final Timeline t = new Timeline(11); public static void main(String[] args) { + Timeline t = new Timeline(11); LogicUIStandalone ui = new LogicUIStandalone(t); - addComponentsAndWires(ui.getLogicUICanvas()); + addComponentsAndWires(ui.getLogicUICanvas(), t); ui.run(); } - public static void addComponentsAndWires(LogicUICanvas ui) + public static void addComponentsAndWires(LogicUICanvas ui, Timeline t) { Wire r = new Wire(t, 1, WIRE_DELAY); Wire s = new Wire(t, 1, WIRE_DELAY);