Wrote /root/JavaX-Caches/tmp_1515240127/main.java - 4238 bytes (written=4238, should be 4238) 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_898998401 /root/JavaX-Caches/tmp_1515240127/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1515240127/main.java:4: error: class, interface, or enum expected sclass ComponentResizeDragger extends MouseAdapter { ^ /root/JavaX-Caches/tmp_1515240127/main.java:6: error: class, interface, or enum expected int cornerSize = 10; // how big do we assume the corners are ^ /root/JavaX-Caches/tmp_1515240127/main.java:7: error: class, interface, or enum expected settable bool debug; ^ /root/JavaX-Caches/tmp_1515240127/main.java:9: error: class, interface, or enum expected MouseEvent mouseDownEvent; // if != null, we're engaged ^ /root/JavaX-Caches/tmp_1515240127/main.java:10: error: class, interface, or enum expected JComponent src; ^ /root/JavaX-Caches/tmp_1515240127/main.java:11: error: class, interface, or enum expected Rect originalPosition, srcBounds; ^ /root/JavaX-Caches/tmp_1515240127/main.java:12: error: class, interface, or enum expected int dragX, dragY; // -1, 0 or 1 depending on what we are dragging ^ /root/JavaX-Caches/tmp_1515240127/main.java:13: error: class, interface, or enum expected Cursor originalCursor, ourCursor; ^ /root/JavaX-Caches/tmp_1515240127/main.java:15: error: class, interface, or enum expected *(Component *component, JComponent *src) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:17: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:19: error: class, interface, or enum expected bool engaged() { ret mouseDownEvent != null; } ^ /root/JavaX-Caches/tmp_1515240127/main.java:23: error: class, interface, or enum expected originalPosition = toRect(getBounds(component)); ^ /root/JavaX-Caches/tmp_1515240127/main.java:24: error: class, interface, or enum expected cursorCalc(e, true); ^ /root/JavaX-Caches/tmp_1515240127/main.java:25: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:29: error: class, interface, or enum expected Pt mouse = pt(e.getXOnScreen(), e.getYOnScreen()); ^ /root/JavaX-Caches/tmp_1515240127/main.java:31: error: class, interface, or enum expected if (distance(mouse.y, srcBounds.y2()) <= cornerSize) ^ /root/JavaX-Caches/tmp_1515240127/main.java:33: error: class, interface, or enum expected else if (distance(mouse.y, srcBounds.y1()) <= cornerSize) ^ /root/JavaX-Caches/tmp_1515240127/main.java:35: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1515240127/main.java:38: error: class, interface, or enum expected if (distance(mouse.x, srcBounds.x2()) <= cornerSize) ^ /root/JavaX-Caches/tmp_1515240127/main.java:40: error: class, interface, or enum expected else if (distance(mouse.x, srcBounds.x1()) <= cornerSize) ^ /root/JavaX-Caches/tmp_1515240127/main.java:42: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1515240127/main.java:45: error: class, interface, or enum expected originalCursor = src.getCursor(); ^ /root/JavaX-Caches/tmp_1515240127/main.java:46: error: class, interface, or enum expected int iCursor = dragY*3+dragX+4; ^ /root/JavaX-Caches/tmp_1515240127/main.java:47: error: class, interface, or enum expected int cursor = new int[] { ^ /root/JavaX-Caches/tmp_1515240127/main.java:58: error: class, interface, or enum expected Cursor newCursor = cursor >= 0 && inside ? Cursor.getPredefinedCursor(cursor) : null; ^ /root/JavaX-Caches/tmp_1515240127/main.java:60: error: class, interface, or enum expected if (newCursor != ourCursor) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:62: error: class, interface, or enum expected src.setCursor(newCursor); ^ /root/JavaX-Caches/tmp_1515240127/main.java:63: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:69: error: class, interface, or enum expected @Override public void mouseEntered(MouseEvent e) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:71: error: class, interface, or enum expected if (!engaged()) ^ /root/JavaX-Caches/tmp_1515240127/main.java:73: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:75: error: class, interface, or enum expected @Override public void mouseExited(MouseEvent e) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:77: error: class, interface, or enum expected if (!engaged()) ^ /root/JavaX-Caches/tmp_1515240127/main.java:79: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:81: error: class, interface, or enum expected public void mousePressed(MouseEvent e) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:84: error: class, interface, or enum expected if (engaged()) ret; // what? ^ /root/JavaX-Caches/tmp_1515240127/main.java:85: error: class, interface, or enum expected if (!mouseEventIsInBorder(e)) ret; ^ /root/JavaX-Caches/tmp_1515240127/main.java:86: error: class, interface, or enum expected start(e); ^ /root/JavaX-Caches/tmp_1515240127/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:89: error: class, interface, or enum expected public void mouseDragged(MouseEvent e) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:91: error: class, interface, or enum expected updatePosition(e); ^ /root/JavaX-Caches/tmp_1515240127/main.java:92: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:94: error: class, interface, or enum expected public void mouseMoved(MouseEvent e) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:98: error: class, interface, or enum expected public void mouseReleased(MouseEvent e) { ^ /root/JavaX-Caches/tmp_1515240127/main.java:100: error: class, interface, or enum expected if (e.getButton() != mouseDownEvent.getButton()) ret; ^ /root/JavaX-Caches/tmp_1515240127/main.java:101: error: class, interface, or enum expected updatePosition(e); ^ /root/JavaX-Caches/tmp_1515240127/main.java:102: error: class, interface, or enum expected if (debug) print("drag done"); ^ /root/JavaX-Caches/tmp_1515240127/main.java:103: error: class, interface, or enum expected if (src.getCursor() == ourCursor) ^ /root/JavaX-Caches/tmp_1515240127/main.java:105: error: class, interface, or enum expected mouseDownEvent = null; ^ /root/JavaX-Caches/tmp_1515240127/main.java:106: error: class, interface, or enum expected dragDone(); ^ /root/JavaX-Caches/tmp_1515240127/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1515240127/main.java:112: error: class, interface, or enum expected Pt a = topLeftCorner(w), b = bottomRightCorner(w); ^ /root/JavaX-Caches/tmp_1515240127/main.java:113: error: class, interface, or enum expected Pt mouse = pt(e.getXOnScreen(), e.getYOnScreen()); ^ /root/JavaX-Caches/tmp_1515240127/main.java:114: error: class, interface, or enum expected Pt minSize = toPt(component.getMinimumSize()); ^ /root/JavaX-Caches/tmp_1515240127/main.java:116: error: class, interface, or enum expected if (dragX < 0) ^ /root/JavaX-Caches/tmp_1515240127/main.java:118: error: class, interface, or enum expected else if (dragX > 0) ^ /root/JavaX-Caches/tmp_1515240127/main.java:121: error: class, interface, or enum expected if (dragY < 0) ^ /root/JavaX-Caches/tmp_1515240127/main.java:123: error: class, interface, or enum expected else if (dragY > 0) ^ /root/JavaX-Caches/tmp_1515240127/main.java:126: error: class, interface, or enum expected Rect r = rectFromPoints(a, b); ^ /root/JavaX-Caches/tmp_1515240127/main.java:127: error: class, interface, or enum expected if (debug) printVars("ComponentResizeDragger.updatePosition", +w, +mouse, +a, +b, +dragX, +dragY); ^ /root/JavaX-Caches/tmp_1515240127/main.java:128: error: class, interface, or enum expected component.setBounds(toRectangle(r)); ^ /root/JavaX-Caches/tmp_1515240127/main.java:129: error: class, interface, or enum expected } ^ 63 errors