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

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

/root/JavaX-Caches/tmp_939738754/main.java:1: error: modifier static not allowed here static class ScalablePane extends JPanel { ^ /root/JavaX-Caches/tmp_939738754/main.java:1: error: cannot find symbol static class ScalablePane extends JPanel { ^ symbol: class JPanel /root/JavaX-Caches/tmp_939738754/main.java:3: error: cannot find symbol private Image master; ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:5: error: cannot find symbol private Image scaled; ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:7: error: cannot find symbol public ScalablePane(Image master) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:11: error: cannot find symbol public ScalablePane(Image master, boolean toFit) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:17: error: cannot find symbol public Dimension getPreferredSize() { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:22: error: cannot find symbol protected void paintComponent(Graphics g) { ^ symbol: class Graphics location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:64: error: cannot find symbol protected BufferedImage toBufferedImage(Image master) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:64: error: cannot find symbol protected BufferedImage toBufferedImage(Image master) { ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:73: error: cannot find symbol public Image getScaledInstanceToFit(Image master, Dimension size) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:73: error: cannot find symbol public Image getScaledInstanceToFit(Image master, Dimension size) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:73: error: cannot find symbol public Image getScaledInstanceToFit(Image master, Dimension size) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:82: error: cannot find symbol public Image getScaledInstanceToFill(Image master, Dimension size) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:82: error: cannot find symbol public Image getScaledInstanceToFill(Image master, Dimension size) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:82: error: cannot find symbol public Image getScaledInstanceToFill(Image master, Dimension size) { ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:91: error: cannot find symbol public Dimension getSizeToFit(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:91: error: cannot find symbol public Dimension getSizeToFit(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:91: error: cannot find symbol public Dimension getSizeToFit(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:99: error: cannot find symbol public Dimension getSizeToFill(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:99: error: cannot find symbol public Dimension getSizeToFill(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:99: error: cannot find symbol public Dimension getSizeToFill(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:111: error: cannot find symbol public double getScaleFactorToFit(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:111: error: cannot find symbol public double getScaleFactorToFit(Dimension original, Dimension toFit) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:121: error: cannot find symbol public double getScaleFactorToFill(Dimension masterSize, Dimension targetSize) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:121: error: cannot find symbol public double getScaleFactorToFill(Dimension masterSize, Dimension targetSize) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:128: error: cannot find symbol public BufferedImage createCompatibleImage(Dimension size) { ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:128: error: cannot find symbol public BufferedImage createCompatibleImage(Dimension size) { ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:132: error: cannot find symbol public BufferedImage createCompatibleImage(int width, int height) { ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:143: error: cannot find symbol protected BufferedImage getScaledInstance(BufferedImage img, double dScaleFactor, Object hint, boolean bHighQuality) { ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:143: error: cannot find symbol protected BufferedImage getScaledInstance(BufferedImage img, double dScaleFactor, Object hint, boolean bHighQuality) { ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:157: error: cannot find symbol protected BufferedImage getScaledDownInstance(BufferedImage img, ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:157: error: cannot find symbol protected BufferedImage getScaledDownInstance(BufferedImage img, ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:212: error: cannot find symbol protected BufferedImage getScaledUpInstance(BufferedImage img, ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:212: error: cannot find symbol protected BufferedImage getScaledUpInstance(BufferedImage img, ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:16: error: method does not override or implement a method from a supertype @Override ^ /root/JavaX-Caches/tmp_939738754/main.java:18: error: cannot find symbol return master == null ? super.getPreferredSize() : new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: variable super location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:18: error: cannot find symbol return master == null ? super.getPreferredSize() : new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:21: error: method does not override or implement a method from a supertype @Override ^ /root/JavaX-Caches/tmp_939738754/main.java:23: error: cannot find symbol super.paintComponent(g); ^ symbol: variable super location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:24: error: cannot find symbol Image toDraw = null; ^ symbol: class Image location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:32: error: cannot find symbol int x = (getWidth() - toDraw.getWidth(this)) / 2; ^ symbol: method getWidth() location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:33: error: cannot find symbol int y = (getHeight() - toDraw.getHeight(this)) / 2; ^ symbol: method getHeight() location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:38: error: method does not override or implement a method from a supertype @Override ^ /root/JavaX-Caches/tmp_939738754/main.java:41: error: cannot find symbol super.invalidate(); ^ symbol: variable super location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:58: error: cannot find symbol scaled = getScaledInstanceToFit(master, getSize()); ^ symbol: method getSize() location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:60: error: cannot find symbol scaled = getScaledInstanceToFill(master, getSize()); ^ symbol: method getSize() location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:65: error: cannot find symbol Dimension masterSize = new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:65: error: cannot find symbol Dimension masterSize = new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:66: error: cannot find symbol BufferedImage image = createCompatibleImage(masterSize); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:67: error: cannot find symbol Graphics2D g2d = image.createGraphics(); ^ symbol: class Graphics2D location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:74: error: cannot find symbol Dimension masterSize = new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:74: error: cannot find symbol Dimension masterSize = new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:78: error: cannot find symbol RenderingHints.VALUE_INTERPOLATION_BILINEAR, ^ symbol: variable RenderingHints location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:83: error: cannot find symbol Dimension masterSize = new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:83: error: cannot find symbol Dimension masterSize = new Dimension(master.getWidth(this), master.getHeight(this)); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:87: error: cannot find symbol RenderingHints.VALUE_INTERPOLATION_BILINEAR, ^ symbol: variable RenderingHints location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:93: error: cannot find symbol Dimension size = new Dimension(original); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:93: error: cannot find symbol Dimension size = new Dimension(original); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:101: error: cannot find symbol Dimension size = new Dimension(original); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:101: error: cannot find symbol Dimension size = new Dimension(original); ^ symbol: class Dimension location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:133: error: cannot find symbol GraphicsConfiguration gc = getGraphicsConfiguration(); ^ symbol: class GraphicsConfiguration location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:133: error: cannot find symbol GraphicsConfiguration gc = getGraphicsConfiguration(); ^ symbol: method getGraphicsConfiguration() location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:135: error: cannot find symbol gc = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration(); ^ symbol: variable GraphicsEnvironment location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:138: error: cannot find symbol BufferedImage image = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:138: error: cannot find symbol BufferedImage image = gc.createCompatibleImage(width, height, Transparency.TRANSLUCENT); ^ symbol: variable Transparency location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:144: error: cannot find symbol BufferedImage imgScale = img; ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:163: error: cannot find symbol int type = (img.getTransparency() == Transparency.OPAQUE) ^ symbol: variable Transparency location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:164: error: cannot find symbol ? BufferedImage.TYPE_INT_RGB : BufferedImage.TYPE_INT_ARGB; ^ symbol: variable BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:164: error: cannot find symbol ? BufferedImage.TYPE_INT_RGB : BufferedImage.TYPE_INT_ARGB; ^ symbol: variable BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:166: error: cannot find symbol BufferedImage _ret = (BufferedImage) img; ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:166: error: cannot find symbol BufferedImage _ret = (BufferedImage) img; ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:197: error: cannot find symbol BufferedImage tmp = new BufferedImage(Math.max(w, 1), Math.max(h, 1), type); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:197: error: cannot find symbol BufferedImage tmp = new BufferedImage(Math.max(w, 1), Math.max(h, 1), type); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:198: error: cannot find symbol Graphics2D g2 = tmp.createGraphics(); ^ symbol: class Graphics2D location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:199: error: cannot find symbol g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, hint); ^ symbol: variable RenderingHints location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:206: error: cannot find symbol _ret = new BufferedImage(1, 1, type); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:218: error: cannot find symbol int type = BufferedImage.TYPE_INT_ARGB; ^ symbol: variable BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:220: error: cannot find symbol BufferedImage _ret = (BufferedImage) img; ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:220: error: cannot find symbol BufferedImage _ret = (BufferedImage) img; ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:250: error: cannot find symbol BufferedImage tmp = new BufferedImage(w, h, type); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:250: error: cannot find symbol BufferedImage tmp = new BufferedImage(w, h, type); ^ symbol: class BufferedImage location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:251: error: cannot find symbol Graphics2D g2 = tmp.createGraphics(); ^ symbol: class Graphics2D location: class ScalablePane /root/JavaX-Caches/tmp_939738754/main.java:252: error: cannot find symbol g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, hint); ^ symbol: variable RenderingHints location: class ScalablePane 84 errors