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

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

/root/JavaX-Caches/tmp_1320554499/main.java:4: error: class, interface, or enum expected static JTextPane showColoredText(L textAndColors) { ^ /root/JavaX-Caches/tmp_1320554499/main.java:6: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1320554499/main.java:10: error: class, interface, or enum expected Container cp = jf.getContentPane(); ^ /root/JavaX-Caches/tmp_1320554499/main.java:12: error: class, interface, or enum expected new JTextPane pane; ^ /root/JavaX-Caches/tmp_1320554499/main.java:13: error: class, interface, or enum expected showColoredText_fillPane(pane, textAndColors); ^ /root/JavaX-Caches/tmp_1320554499/main.java:15: error: class, interface, or enum expected cp.add(new JScrollPane(pane), BorderLayout.CENTER); ^ /root/JavaX-Caches/tmp_1320554499/main.java:17: error: class, interface, or enum expected jf.setSize(500, 600); ^ /root/JavaX-Caches/tmp_1320554499/main.java:18: error: class, interface, or enum expected centerFrame(jf); ^ /root/JavaX-Caches/tmp_1320554499/main.java:19: error: class, interface, or enum expected jf.setVisible(true); ^ /root/JavaX-Caches/tmp_1320554499/main.java:20: error: class, interface, or enum expected ret pane; ^ /root/JavaX-Caches/tmp_1320554499/main.java:21: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1320554499/main.java:25: error: class, interface, or enum expected Color color = Color.white; ^ /root/JavaX-Caches/tmp_1320554499/main.java:26: error: class, interface, or enum expected for (O x : textAndColors) { ^ /root/JavaX-Caches/tmp_1320554499/main.java:29: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1320554499/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1320554499/main.java:36: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1320554499/main.java:40: error: class, interface, or enum expected SimpleAttributeSet set = new SimpleAttributeSet(); ^ /root/JavaX-Caches/tmp_1320554499/main.java:41: error: class, interface, or enum expected StyleConstants.setFontFamily(set, "Courier"); ^ /root/JavaX-Caches/tmp_1320554499/main.java:42: error: class, interface, or enum expected StyleConstants.setBold(set, true); ^ /root/JavaX-Caches/tmp_1320554499/main.java:43: error: class, interface, or enum expected StyleConstants.setFontSize(set, 14); ^ /root/JavaX-Caches/tmp_1320554499/main.java:44: error: class, interface, or enum expected StyleConstants.setBackground(set, color); ^ /root/JavaX-Caches/tmp_1320554499/main.java:45: error: class, interface, or enum expected doc.insertString(doc.getLength(), text, set); ^ /root/JavaX-Caches/tmp_1320554499/main.java:46: error: class, interface, or enum expected } ^ 23 errors