X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fexamples%2FPlayground.java;h=f55675989ebfd2daffb512250bcb2a14009b07f9;hb=0a97b3e3d138ecaf4dd6351663876502f841fd25;hp=74da19ccfa557bf142862f771d20b61f57197476;hpb=d9f306c578947528a56a78f8c82f1aac536fe7de;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/examples/Playground.java b/LogicUI/src/era/mi/gui/examples/Playground.java index 74da19cc..f5567598 100644 --- a/LogicUI/src/era/mi/gui/examples/Playground.java +++ b/LogicUI/src/era/mi/gui/examples/Playground.java @@ -1,6 +1,5 @@ package era.mi.gui.examples; -import era.mi.gui.LogicUICanvas; import era.mi.gui.LogicUIStandalone; import era.mi.gui.model.ViewModel; import era.mi.gui.model.components.GUIAndGate; @@ -17,11 +16,11 @@ public class Playground { ViewModel model = new ViewModel(); LogicUIStandalone ui = new LogicUIStandalone(model); - addComponentsAndWires(ui.getLogicUICanvas(), model); + addComponentsAndWires(model); ui.run(); } - public static void addComponentsAndWires(LogicUICanvas ui, ViewModel model) + public static void addComponentsAndWires(ViewModel model) { GUIAndGate andGate = new GUIAndGate(model); andGate.moveTo(10, 10);