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

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

/root/JavaX-Caches/tmp_413044082/main.java:1: error: class, interface, or enum expected sbool installInternalFrameSwitcher_v2_debug; ^ /root/JavaX-Caches/tmp_413044082/main.java:3: error: class, interface, or enum expected svoid installInternalFrameSwitcher_v2(final JDesktopPane desktop) { ^ /root/JavaX-Caches/tmp_413044082/main.java:3: error: class, interface, or enum expected svoid installInternalFrameSwitcher_v2(final JDesktopPane desktop) { ^ /root/JavaX-Caches/tmp_413044082/main.java:6: error: class, interface, or enum expected desktop.addContainerListener(desktopListener); ^ /root/JavaX-Caches/tmp_413044082/main.java:8: error: class, interface, or enum expected new SwitchDispatcher<JInternalFrame>(new DesktopSwitcher(desktop), desktopListener).start(); ^ /root/JavaX-Caches/tmp_413044082/main.java:9: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:15: error: class, interface, or enum expected public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { ^ /root/JavaX-Caches/tmp_413044082/main.java:17: error: class, interface, or enum expected setText(((JInternalFrame) value).getTitle()); ^ /root/JavaX-Caches/tmp_413044082/main.java:18: error: class, interface, or enum expected setMargin(marginW, marginH, this); ^ /root/JavaX-Caches/tmp_413044082/main.java:19: error: class, interface, or enum expected ret c; ^ /root/JavaX-Caches/tmp_413044082/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:24: error: class, interface, or enum expected private final List<JInternalFrame> frames = new ArrayList<>(); ^ /root/JavaX-Caches/tmp_413044082/main.java:25: error: class, interface, or enum expected private final boolean titleOptional; ^ /root/JavaX-Caches/tmp_413044082/main.java:26: error: class, interface, or enum expected private final InternalFrameAdapter frameActivatedListener = new InternalFrameAdapter() { ^ /root/JavaX-Caches/tmp_413044082/main.java:28: error: class, interface, or enum expected public void internalFrameActivated(InternalFrameEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:30: error: class, interface, or enum expected frames.remove(frame); ^ /root/JavaX-Caches/tmp_413044082/main.java:31: error: class, interface, or enum expected frames.add(0, frame); ^ /root/JavaX-Caches/tmp_413044082/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:35: error: class, interface, or enum expected public DesktopListener() { ^ /root/JavaX-Caches/tmp_413044082/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:39: error: class, interface, or enum expected public DesktopListener(boolean titleOptional) { ^ /root/JavaX-Caches/tmp_413044082/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:44: error: class, interface, or enum expected public void componentAdded(final ContainerEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:44: error: class, interface, or enum expected public void componentAdded(final ContainerEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:46: error: class, interface, or enum expected final JInternalFrame frame = (JInternalFrame) e.getChild(); ^ /root/JavaX-Caches/tmp_413044082/main.java:47: error: class, interface, or enum expected if (isTitleOptional() || frame.getTitle() != null && !frame.getTitle().trim().isEmpty()) { ^ /root/JavaX-Caches/tmp_413044082/main.java:49: error: class, interface, or enum expected frame.addInternalFrameListener(frameActivatedListener); ^ /root/JavaX-Caches/tmp_413044082/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:55: error: class, interface, or enum expected public void componentRemoved(final ContainerEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:55: error: class, interface, or enum expected public void componentRemoved(final ContainerEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:58: error: class, interface, or enum expected frames.remove(frame); ^ /root/JavaX-Caches/tmp_413044082/main.java:59: error: class, interface, or enum expected frame.removeInternalFrameListener(frameActivatedListener); ^ /root/JavaX-Caches/tmp_413044082/main.java:60: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:65: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:67: error: class, interface, or enum expected public List<JInternalFrame> getSwitchableComponentList() { ^ /root/JavaX-Caches/tmp_413044082/main.java:69: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:73: error: class, interface, or enum expected private final JDesktopPane jDesktopPane; ^ /root/JavaX-Caches/tmp_413044082/main.java:74: error: class, interface, or enum expected private SwitchDialog<JInternalFrame> switchDialog; ^ /root/JavaX-Caches/tmp_413044082/main.java:76: error: class, interface, or enum expected public DesktopSwitcher(JDesktopPane jDesktopPane) { ^ /root/JavaX-Caches/tmp_413044082/main.java:78: error: class, interface, or enum expected switchDialog = new SwitchDialog<>(SwingUtilities.getWindowAncestor(jDesktopPane), new ArrayList<JInternalFrame>()); ^ /root/JavaX-Caches/tmp_413044082/main.java:79: error: class, interface, or enum expected initMouseListener(); ^ /root/JavaX-Caches/tmp_413044082/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:82: error: class, interface, or enum expected public void previous(List<JInternalFrame> switchableComponentList) { ^ /root/JavaX-Caches/tmp_413044082/main.java:84: error: class, interface, or enum expected switchDialog.selectPrevious(); ^ /root/JavaX-Caches/tmp_413044082/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:87: error: class, interface, or enum expected public void next(List<JInternalFrame> switchableComponentList) { ^ /root/JavaX-Caches/tmp_413044082/main.java:89: error: class, interface, or enum expected switchDialog.selectNext(); ^ /root/JavaX-Caches/tmp_413044082/main.java:90: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:92: error: class, interface, or enum expected public void dismiss() { ^ /root/JavaX-Caches/tmp_413044082/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:97: error: class, interface, or enum expected public JDesktopPane getDesktop() { ^ /root/JavaX-Caches/tmp_413044082/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:102: error: class, interface, or enum expected public boolean hasFocus() { ^ /root/JavaX-Caches/tmp_413044082/main.java:104: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:106: error: class, interface, or enum expected public SwitchDialog<JInternalFrame> getSwitchDialog() { ^ /root/JavaX-Caches/tmp_413044082/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:112: error: class, interface, or enum expected if (!switchableComponentList.isEmpty()) { ^ /root/JavaX-Caches/tmp_413044082/main.java:114: error: class, interface, or enum expected switchDialog.setLocationRelativeTo(jDesktopPane); ^ /root/JavaX-Caches/tmp_413044082/main.java:115: error: class, interface, or enum expected switchDialog.setVisible(true); ^ /root/JavaX-Caches/tmp_413044082/main.java:116: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:123: error: class, interface, or enum expected if (selected != null) { ^ /root/JavaX-Caches/tmp_413044082/main.java:125: error: class, interface, or enum expected selected.setSelected(true); ^ /root/JavaX-Caches/tmp_413044082/main.java:126: error: class, interface, or enum expected selected.toFront(); ^ /root/JavaX-Caches/tmp_413044082/main.java:127: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:130: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:136: error: class, interface, or enum expected public void mouseReleased(final MouseEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:136: error: class, interface, or enum expected public void mouseReleased(final MouseEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:138: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:140: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:144: error: class, interface, or enum expected private static final KeyStroke nextStroke = KeyStroke.getKeyStroke("ctrl TAB"); ^ /root/JavaX-Caches/tmp_413044082/main.java:145: error: class, interface, or enum expected private static final KeyStroke previousStroke = KeyStroke.getKeyStroke("ctrl shift TAB"); ^ /root/JavaX-Caches/tmp_413044082/main.java:147: error: class, interface, or enum expected private final Switcher<T> switcher; ^ /root/JavaX-Caches/tmp_413044082/main.java:148: error: class, interface, or enum expected private final SwitchableComponentsListener<T> desktopListener; ^ /root/JavaX-Caches/tmp_413044082/main.java:150: error: class, interface, or enum expected public SwitchDispatcher(Switcher<T> switcher, SwitchableComponentsListener<T> switchableComponentsListener) { ^ /root/JavaX-Caches/tmp_413044082/main.java:152: error: class, interface, or enum expected this.desktopListener = switchableComponentsListener; ^ /root/JavaX-Caches/tmp_413044082/main.java:153: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:155: error: class, interface, or enum expected public void start() { ^ /root/JavaX-Caches/tmp_413044082/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:159: error: class, interface, or enum expected public void stop() { ^ /root/JavaX-Caches/tmp_413044082/main.java:161: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:163: error: class, interface, or enum expected public boolean dispatchKeyEvent(KeyEvent e) { ^ /root/JavaX-Caches/tmp_413044082/main.java:166: error: class, interface, or enum expected if (!shouldSwitch) { ^ /root/JavaX-Caches/tmp_413044082/main.java:168: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:171: error: class, interface, or enum expected boolean next = nextStroke.equals(keyStrokeForEvent); ^ /root/JavaX-Caches/tmp_413044082/main.java:172: error: class, interface, or enum expected boolean previous = previousStroke.equals(keyStrokeForEvent); ^ /root/JavaX-Caches/tmp_413044082/main.java:173: error: class, interface, or enum expected boolean dismiss = e.getKeyCode() == KeyEvent.VK_CONTROL && !e.isControlDown(); ^ /root/JavaX-Caches/tmp_413044082/main.java:175: error: class, interface, or enum expected if (installInternalFrameSwitcher_v2_debug) print("Have keystroke: " + keyStrokeForEvent + ", " + next + "/" + previous + "/" + dismiss); ^ /root/JavaX-Caches/tmp_413044082/main.java:177: error: class, interface, or enum expected if (next) { ^ /root/JavaX-Caches/tmp_413044082/main.java:179: error: class, interface, or enum expected } else if (previous) { ^ /root/JavaX-Caches/tmp_413044082/main.java:181: error: class, interface, or enum expected } else if (dismiss) { ^ /root/JavaX-Caches/tmp_413044082/main.java:183: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:185: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:189: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:193: error: class, interface, or enum expected while (parent != null && !(parent instanceof JDesktopPane)) { ^ /root/JavaX-Caches/tmp_413044082/main.java:195: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:197: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:208: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_413044082/main.java:229: error: class, interface, or enum expected void next(List<T> switchableComponentList); ^ /root/JavaX-Caches/tmp_413044082/main.java:234: error: class, interface, or enum expected void dismiss(); ^ /root/JavaX-Caches/tmp_413044082/main.java:239: error: class, interface, or enum expected JDesktopPane getDesktop(); ^ 100 errors only showing the first 100 errors, of 139 total; use -Xmaxerrs if you would like to see more