Wrote /root/JavaX-Caches/tmp_541426101/main.java - 5382 bytes (written=5382, should be 5382) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar:/root/.tinybrain/snippet-cache/1400546.jar:/root/.tinybrain/snippet-cache/1400547.jar:/root/.tinybrain/snippet-cache/1400548.jar:/root/.tinybrain/snippet-cache/1400555.jar -d /root/JavaX-Caches/tmp_536591919 /root/JavaX-Caches/tmp_541426101/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_541426101/main.java:1: error: class, interface, or enum expected sclass JG22Network is Swingable { ^ /root/JavaX-Caches/tmp_541426101/main.java:3: error: class, interface, or enum expected new MainPanel mainPanel; ^ /root/JavaX-Caches/tmp_541426101/main.java:4: error: class, interface, or enum expected new G22Network network; ^ /root/JavaX-Caches/tmp_541426101/main.java:5: error: class, interface, or enum expected Map<G22NetworkElement, JG22NetworkElement> elementToComponent = syncMap(); ^ /root/JavaX-Caches/tmp_541426101/main.java:6: error: class, interface, or enum expected ReliableSingleThread rstUpdate = rstWithPreDelay(0.25, l0 updateImpl); ^ /root/JavaX-Caches/tmp_541426101/main.java:7: error: class, interface, or enum expected JCheckBox cbAutoCalculate; ^ /root/JavaX-Caches/tmp_541426101/main.java:9: error: class, interface, or enum expected settable int maxMagneticDistance = 100; ^ /root/JavaX-Caches/tmp_541426101/main.java:10: error: class, interface, or enum expected settable double autoCalcInterval = 0.1; ^ /root/JavaX-Caches/tmp_541426101/main.java:13: error: class, interface, or enum expected settable volatile G22NetworkInstance networkInstance; ^ /root/JavaX-Caches/tmp_541426101/main.java:16: error: class, interface, or enum expected transient int margin = 50; ^ /root/JavaX-Caches/tmp_541426101/main.java:20: error: illegal start of type *() { super(null); } // no layout manager ^ /root/JavaX-Caches/tmp_541426101/main.java:23: error: not a statement public bool isOptimizedDrawingEnabled() { false; } ^ /root/JavaX-Caches/tmp_541426101/main.java:29: error: not a statement ret new Dimension(r.x2()+margin, r.y2()+margin); ^ /root/JavaX-Caches/tmp_541426101/main.java:29: error: ';' expected ret new Dimension(r.x2()+margin, r.y2()+margin); ^ /root/JavaX-Caches/tmp_541426101/main.java:41: error: ';' expected cast g to Graphics2D; ^ /root/JavaX-Caches/tmp_541426101/main.java:44: error: bad initializer for for-loop for (cable : network.allCables()) { ^ /root/JavaX-Caches/tmp_541426101/main.java:52: error: class, interface, or enum expected *(G22Utils *g22utils, G22Network *network) { ^ /root/JavaX-Caches/tmp_541426101/main.java:54: error: class, interface, or enum expected for (element : network.elements) ^ /root/JavaX-Caches/tmp_541426101/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:58: error: class, interface, or enum expected void networkChanged { rstUpdate.trigger(); } ^ /root/JavaX-Caches/tmp_541426101/main.java:63: error: class, interface, or enum expected visualizePorts(); ^ /root/JavaX-Caches/tmp_541426101/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:68: error: class, interface, or enum expected for (port : directChildrenOfType(mainPanel, JG22NetworkPort)) ^ /root/JavaX-Caches/tmp_541426101/main.java:72: error: class, interface, or enum expected for (e : network.elements) { ^ /root/JavaX-Caches/tmp_541426101/main.java:74: error: class, interface, or enum expected if (c == null) ^ /root/JavaX-Caches/tmp_541426101/main.java:76: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_541426101/main.java:80: error: class, interface, or enum expected if (p != null) { ^ /root/JavaX-Caches/tmp_541426101/main.java:82: error: class, interface, or enum expected visualizations.remove(port); ^ /root/JavaX-Caches/tmp_541426101/main.java:83: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_541426101/main.java:85: error: class, interface, or enum expected p.init(); ^ /root/JavaX-Caches/tmp_541426101/main.java:86: error: class, interface, or enum expected mainPanel.add(p); ^ /root/JavaX-Caches/tmp_541426101/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:95: error: class, interface, or enum expected mainPanel.repaint(); ^ /root/JavaX-Caches/tmp_541426101/main.java:96: error: class, interface, or enum expected }} ^ /root/JavaX-Caches/tmp_541426101/main.java:100: error: class, interface, or enum expected networkInstance.onDirtyStatesChanged(l0 dirtyStatesChanged); ^ /root/JavaX-Caches/tmp_541426101/main.java:101: error: class, interface, or enum expected networkInstance.init(g22utils); ^ /root/JavaX-Caches/tmp_541426101/main.java:102: error: class, interface, or enum expected networkInstance(networkInstance); ^ /root/JavaX-Caches/tmp_541426101/main.java:103: error: class, interface, or enum expected dirtyStatesChanged(); ^ /root/JavaX-Caches/tmp_541426101/main.java:104: error: class, interface, or enum expected print("Network instance made"); ^ /root/JavaX-Caches/tmp_541426101/main.java:105: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:110: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:114: error: class, interface, or enum expected elementToComponent.put(element, c); ^ /root/JavaX-Caches/tmp_541426101/main.java:115: error: class, interface, or enum expected var component = c.visualize(); ^ /root/JavaX-Caches/tmp_541426101/main.java:116: error: class, interface, or enum expected mainPanel.add(component); ^ /root/JavaX-Caches/tmp_541426101/main.java:117: error: class, interface, or enum expected mainPanel.revalidateMe(); ^ /root/JavaX-Caches/tmp_541426101/main.java:118: error: class, interface, or enum expected componentToFront(component); ^ /root/JavaX-Caches/tmp_541426101/main.java:119: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:123: error: class, interface, or enum expected rstUpdate.trigger(); ^ /root/JavaX-Caches/tmp_541426101/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:128: error: class, interface, or enum expected element.network(network); ^ /root/JavaX-Caches/tmp_541426101/main.java:129: error: class, interface, or enum expected network.elements.add(element); ^ /root/JavaX-Caches/tmp_541426101/main.java:130: error: class, interface, or enum expected network.change(); ^ /root/JavaX-Caches/tmp_541426101/main.java:131: error: class, interface, or enum expected visualizeElement(element); ^ /root/JavaX-Caches/tmp_541426101/main.java:132: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:136: error: class, interface, or enum expected network.change(); ^ /root/JavaX-Caches/tmp_541426101/main.java:137: error: class, interface, or enum expected mainPanel.remove(element.visualize()); ^ /root/JavaX-Caches/tmp_541426101/main.java:138: error: class, interface, or enum expected mainPanel.repaint(); ^ /root/JavaX-Caches/tmp_541426101/main.java:139: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:143: error: class, interface, or enum expected fOr (cable : newCables) ^ /root/JavaX-Caches/tmp_541426101/main.java:145: error: class, interface, or enum expected mainPanel.repaint(); ^ /root/JavaX-Caches/tmp_541426101/main.java:146: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:151: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:155: error: class, interface, or enum expected if (node == null) ret; ^ /root/JavaX-Caches/tmp_541426101/main.java:156: error: class, interface, or enum expected elementToComponent.get(node).visualizeNode(); ^ /root/JavaX-Caches/tmp_541426101/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_541426101/main.java:161: error: class, interface, or enum expected awtCalcEvery(mainPanel, autoCalcInterval, -> { ^ /root/JavaX-Caches/tmp_541426101/main.java:164: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_541426101/main.java:166: error: class, interface, or enum expected var magneticDistanceSlider = jLiveValueSlider_int_bothWays(0, maxMagneticDistance, network.varMagneticDistance()); ^ /root/JavaX-Caches/tmp_541426101/main.java:168: error: class, interface, or enum expected ret withRightAlignedButtons(/*jscroll_center_borderless*/jscroll(mainPanel), ^ /root/JavaX-Caches/tmp_541426101/main.java:175: error: class, interface, or enum expected } ^ 70 errors