Wrote /root/JavaX-Caches/tmp_158008060/main.java - 1466 bytes (written=1466, should be 1466)
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 -d /root/JavaX-Caches/tmp_305830600 /root/JavaX-Caches/tmp_158008060/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_158008060/main.java:1: error: class, interface, or enum expected
srecord noeq ComponentDragger extends MouseAdapter {
^
/root/JavaX-Caches/tmp_158008060/main.java:3: error: class, interface, or enum expected
MouseEvent mouseDownEvent;
^
/root/JavaX-Caches/tmp_158008060/main.java:4: error: class, interface, or enum expected
Component clickedOn;
^
/root/JavaX-Caches/tmp_158008060/main.java:5: error: class, interface, or enum expected
Pt rel;
^
/root/JavaX-Caches/tmp_158008060/main.java:6: error: class, interface, or enum expected
settable bool debug;
^
/root/JavaX-Caches/tmp_158008060/main.java:9: error: class, interface, or enum expected
settable bool bringToFront;
^
/root/JavaX-Caches/tmp_158008060/main.java:11: error: class, interface, or enum expected
*(Component *component, MouseEvent *mouseDownEvent) {}
^
/root/JavaX-Caches/tmp_158008060/main.java:15: error: class, interface, or enum expected
clickedOn = mouseDownEvent.getComponent();
^
/root/JavaX-Caches/tmp_158008060/main.java:16: error: class, interface, or enum expected
if (bringToFront) {
^
/root/JavaX-Caches/tmp_158008060/main.java:18: error: class, interface, or enum expected
componentToFront(component);
^
/root/JavaX-Caches/tmp_158008060/main.java:19: error: class, interface, or enum expected
repaint(getParent(component));
^
/root/JavaX-Caches/tmp_158008060/main.java:20: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_158008060/main.java:26: error: class, interface, or enum expected
addMouseAndMotionListener(clickedOn, this);
^
/root/JavaX-Caches/tmp_158008060/main.java:27: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_158008060/main.java:29: error: class, interface, or enum expected
public void mouseDragged(MouseEvent e) {
^
/root/JavaX-Caches/tmp_158008060/main.java:31: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_158008060/main.java:33: error: class, interface, or enum expected
public void mouseReleased(MouseEvent e) {
^
/root/JavaX-Caches/tmp_158008060/main.java:35: error: class, interface, or enum expected
updatePosition(e);
^
/root/JavaX-Caches/tmp_158008060/main.java:36: error: class, interface, or enum expected
removeMouseAdapter(clickedOn, this);
^
/root/JavaX-Caches/tmp_158008060/main.java:37: error: class, interface, or enum expected
if (debug) printVars("ComponentDragger done");
^
/root/JavaX-Caches/tmp_158008060/main.java:38: error: class, interface, or enum expected
dragDone();
^
/root/JavaX-Caches/tmp_158008060/main.java:39: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_158008060/main.java:45: error: class, interface, or enum expected
x = max(x, 0);
^
/root/JavaX-Caches/tmp_158008060/main.java:46: error: class, interface, or enum expected
y = max(y, 0);
^
/root/JavaX-Caches/tmp_158008060/main.java:48: error: class, interface, or enum expected
updatePosition(x, y);
^
/root/JavaX-Caches/tmp_158008060/main.java:49: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_158008060/main.java:53: error: class, interface, or enum expected
component.setLocation(x, y);
^
/root/JavaX-Caches/tmp_158008060/main.java:54: error: class, interface, or enum expected
}
^
28 errors