Wrote /root/JavaX-Caches/tmp_1942911372/main.java - 199587 bytes (written=199587, should be 199587)
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_911822301 /root/JavaX-Caches/tmp_1942911372/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1942911372/main.java:51: error: no suitable method found for setButtonImage(JToggleButton,String)
setButtonImage(btn, image);
^
method main.setButtonImage(Icon,JButton) is not applicable
(argument mismatch; JToggleButton cannot be converted to Icon)
method main.setButtonImage(Image,JButton) is not applicable
(argument mismatch; JToggleButton cannot be converted to Image)
method main.setButtonImage(Image,A#1) is not applicable
(cannot infer type-variable(s) A#1
(argument mismatch; JToggleButton cannot be converted to Image))
method main.setButtonImage(A#2,Image) is not applicable
(cannot infer type-variable(s) A#2
(argument mismatch; String cannot be converted to Image))
method main.setButtonImage(JButton,Image) is not applicable
(argument mismatch; JToggleButton cannot be converted to JButton)
method main.setButtonImage(JButton,Icon) is not applicable
(argument mismatch; JToggleButton cannot be converted to JButton)
where A#1,A#2 are type-variables:
A#1 extends AbstractButton declared in method setButtonImage(Image,A#1)
A#2 extends AbstractButton declared in method setButtonImage(A#2,Image)
1 error