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

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

/root/JavaX-Caches/tmp_1590204314/main.java:1: error: class, interface, or enum expected sclass ShadowJLabel extends BetterLabel { ^ /root/JavaX-Caches/tmp_1590204314/main.java:4: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_1590204314/main.java:8: error: class, interface, or enum expected this.tracking = tracking; ^ /root/JavaX-Caches/tmp_1590204314/main.java:9: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1590204314/main.java:12: error: class, interface, or enum expected private Color left_color, right_color; ^ /root/JavaX-Caches/tmp_1590204314/main.java:14: error: class, interface, or enum expected public void setLeftShadow(int x, int y, Color color) { ^ /root/JavaX-Caches/tmp_1590204314/main.java:16: error: class, interface, or enum expected left_y = y; ^ /root/JavaX-Caches/tmp_1590204314/main.java:17: error: class, interface, or enum expected left_color = color; ^ /root/JavaX-Caches/tmp_1590204314/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1590204314/main.java:20: error: class, interface, or enum expected public void setRightShadow(int x, int y, Color color) { ^ /root/JavaX-Caches/tmp_1590204314/main.java:22: error: class, interface, or enum expected right_y = y; ^ /root/JavaX-Caches/tmp_1590204314/main.java:23: error: class, interface, or enum expected right_color = color; ^ /root/JavaX-Caches/tmp_1590204314/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1590204314/main.java:26: error: class, interface, or enum expected public Dimension getPreferredSize() { ^ /root/JavaX-Caches/tmp_1590204314/main.java:29: error: class, interface, or enum expected int w = totalWidth(); ^ /root/JavaX-Caches/tmp_1590204314/main.java:30: error: class, interface, or enum expected int h = fm.getHeight(); ^ /root/JavaX-Caches/tmp_1590204314/main.java:31: error: class, interface, or enum expected h += left_y + right_y; ^ /root/JavaX-Caches/tmp_1590204314/main.java:33: error: class, interface, or enum expected return new Dimension(w,h); ^ /root/JavaX-Caches/tmp_1590204314/main.java:34: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1590204314/main.java:38: error: class, interface, or enum expected FontMetrics fm = this.getFontMetrics(getFont()); ^ /root/JavaX-Caches/tmp_1590204314/main.java:39: error: class, interface, or enum expected int w = fm.stringWidth(text); ^ /root/JavaX-Caches/tmp_1590204314/main.java:40: error: class, interface, or enum expected w += (text.length()-1)*tracking; ^ /root/JavaX-Caches/tmp_1590204314/main.java:41: error: class, interface, or enum expected w += left_x + right_x; ^ /root/JavaX-Caches/tmp_1590204314/main.java:42: error: class, interface, or enum expected ret w; ^ /root/JavaX-Caches/tmp_1590204314/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1590204314/main.java:45: error: class, interface, or enum expected public void paintComponent(Graphics g) { ^ /root/JavaX-Caches/tmp_1590204314/main.java:49: error: class, interface, or enum expected char[] chars = getText().toCharArray(); ^ /root/JavaX-Caches/tmp_1590204314/main.java:51: error: class, interface, or enum expected FontMetrics fm = this.getFontMetrics(getFont()); ^ /root/JavaX-Caches/tmp_1590204314/main.java:53: error: class, interface, or enum expected int ha = getHorizontalAlignment(); ^ /root/JavaX-Caches/tmp_1590204314/main.java:54: error: class, interface, or enum expected int va = getVerticalAlignment(); ^ /root/JavaX-Caches/tmp_1590204314/main.java:55: error: class, interface, or enum expected int h = fm.getAscent(); ^ /root/JavaX-Caches/tmp_1590204314/main.java:56: error: class, interface, or enum expected if (va == SwingConstants.CENTER) h += (getHeight()-fm.getHeight())/2; ^ /root/JavaX-Caches/tmp_1590204314/main.java:57: error: class, interface, or enum expected int x = ha == SwingConstants.CENTER ? (getWidth()-totalWidth())/2 : 0; ^ /root/JavaX-Caches/tmp_1590204314/main.java:59: error: class, interface, or enum expected for(int i=0; i<chars.length; i++) { ^ /root/JavaX-Caches/tmp_1590204314/main.java:59: error: class, interface, or enum expected for(int i=0; i<chars.length; i++) { ^ /root/JavaX-Caches/tmp_1590204314/main.java:59: error: class, interface, or enum expected for(int i=0; i<chars.length; i++) { ^ /root/JavaX-Caches/tmp_1590204314/main.java:61: error: class, interface, or enum expected int w = fm.charWidth(ch) + tracking; ^ /root/JavaX-Caches/tmp_1590204314/main.java:63: error: class, interface, or enum expected g.setColor(left_color); ^ /root/JavaX-Caches/tmp_1590204314/main.java:64: error: class, interface, or enum expected g.drawString(""+chars[i],x-left_x,h-left_y); ^ /root/JavaX-Caches/tmp_1590204314/main.java:66: error: class, interface, or enum expected g.setColor(right_color); ^ /root/JavaX-Caches/tmp_1590204314/main.java:67: error: class, interface, or enum expected g.drawString(""+chars[i],x+right_x,h+right_y); ^ /root/JavaX-Caches/tmp_1590204314/main.java:69: error: class, interface, or enum expected g.setColor(getForeground()); ^ /root/JavaX-Caches/tmp_1590204314/main.java:70: error: class, interface, or enum expected g.drawString(""+chars[i],x,h); ^ /root/JavaX-Caches/tmp_1590204314/main.java:72: error: class, interface, or enum expected x+=w; ^ /root/JavaX-Caches/tmp_1590204314/main.java:73: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1590204314/main.java:79: error: class, interface, or enum expected } // end paintComponent() ^ 46 errors