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

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

/root/JavaX-Caches/tmp_1461908945/main.java:1: error: class, interface, or enum expected sclass AutoComboBox2 extends JComboBox<Object> { ^ /root/JavaX-Caches/tmp_1461908945/main.java:4: error: class, interface, or enum expected *() { this(null); } ^ /root/JavaX-Caches/tmp_1461908945/main.java:4: error: class, interface, or enum expected *() { this(null); } ^ /root/JavaX-Caches/tmp_1461908945/main.java:8: error: class, interface, or enum expected setEditable(true); ^ /root/JavaX-Caches/tmp_1461908945/main.java:9: error: class, interface, or enum expected JTextField text = cast this.getEditor().getEditorComponent(); ^ /root/JavaX-Caches/tmp_1461908945/main.java:10: error: class, interface, or enum expected text.setFocusable(true); ^ /root/JavaX-Caches/tmp_1461908945/main.java:12: error: class, interface, or enum expected text.addKeyListener(new KeyAdapter { ^ /root/JavaX-Caches/tmp_1461908945/main.java:13: error: class, interface, or enum expected public void /*keyPressed*/keyReleased(KeyEvent key) { ^ /root/JavaX-Caches/tmp_1461908945/main.java:16: error: class, interface, or enum expected if (key.getKeyCode() == KeyEvent.VK_ESCAPE) { hidePopup(); ret; } ^ /root/JavaX-Caches/tmp_1461908945/main.java:16: error: class, interface, or enum expected if (key.getKeyCode() == KeyEvent.VK_ESCAPE) { hidePopup(); ret; } ^ /root/JavaX-Caches/tmp_1461908945/main.java:16: error: class, interface, or enum expected if (key.getKeyCode() == KeyEvent.VK_ESCAPE) { hidePopup(); ret; } ^ /root/JavaX-Caches/tmp_1461908945/main.java:20: error: class, interface, or enum expected if ((key.getModifiers() & ActionEvent.SHIFT_MASK) == 0 && isPopupVisible()) { ^ /root/JavaX-Caches/tmp_1461908945/main.java:22: error: class, interface, or enum expected hidePopup(); ^ /root/JavaX-Caches/tmp_1461908945/main.java:23: error: class, interface, or enum expected } else // standard tab behavior ^ /root/JavaX-Caches/tmp_1461908945/main.java:26: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_1461908945/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1461908945/main.java:30: error: class, interface, or enum expected if (tf.getCaretPosition() != l(tf.getText())) ret; ^ /root/JavaX-Caches/tmp_1461908945/main.java:31: error: class, interface, or enum expected String text = tf.getText(); ^ /root/JavaX-Caches/tmp_1461908945/main.java:33: error: class, interface, or enum expected Vector list = new Vector(getSuggestions(text)); ^ /root/JavaX-Caches/tmp_1461908945/main.java:34: error: class, interface, or enum expected if (nempty(list)) { ^ /root/JavaX-Caches/tmp_1461908945/main.java:36: error: class, interface, or enum expected setSelectedIndex(-1); ^ /root/JavaX-Caches/tmp_1461908945/main.java:37: error: class, interface, or enum expected tf.setText(text); // necessary? ^ /root/JavaX-Caches/tmp_1461908945/main.java:38: error: class, interface, or enum expected showPopup(); ^ /root/JavaX-Caches/tmp_1461908945/main.java:39: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_1461908945/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1461908945/main.java:44: error: class, interface, or enum expected text.setFocusTraversalKeysEnabled(false); ^ /root/JavaX-Caches/tmp_1461908945/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1461908945/main.java:49: error: class, interface, or enum expected } ^ 28 errors