X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fexamples%2FRSLatchGUIExample.java;h=4aec4cd8229f3a4489b82ecc4d7fa0a0aba5efb9;hb=da0a4b7d0619283bb4384091356ce3f105c84e78;hp=0f2e8f2951c7563c49578ba7982cc7eaa530e94c;hpb=4be7eddcfc45e5e5794bd0dc1e2c2423fa43ec51;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java b/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java index 0f2e8f29..4aec4cd8 100644 --- a/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java +++ b/LogicUI/src/era/mi/gui/examples/RSLatchGUIExample.java @@ -1,6 +1,7 @@ package era.mi.gui.examples; -import era.mi.gui.LogicUI; +import era.mi.gui.LogicUICanvas; +import era.mi.gui.LogicUIStandalone; import era.mi.gui.components.GUIManualSwitch; import era.mi.gui.components.GUINotGate; import era.mi.gui.components.GUIOrGate; @@ -17,12 +18,12 @@ public class RSLatchGUIExample public static void main(String[] args) { - LogicUI ui = new LogicUI(); - initComponents(ui); + LogicUIStandalone ui = new LogicUIStandalone(); + initComponents(ui.getLogicUICanvas()); ui.run(); } - private static void initComponents(LogicUI ui) + private static void initComponents(LogicUICanvas ui) { Simulation.TIMELINE.reset(); Wire r = new Wire(1, WIRE_DELAY);