diff --git a/jode/jode/swingui/Main.java b/jode/jode/swingui/Main.java index 645b3a9..1a8e3f3 100644 --- a/jode/jode/swingui/Main.java +++ b/jode/jode/swingui/Main.java @@ -2,9 +2,15 @@ package jode.swingui; import jode.Decompiler; import jode.JodeEnvironment; import jode.decompiler.TabbedPrintWriter; +///#ifdef JDK12 +///import javax.swing.*; +///import javax.swing.event.*; +///import javax.swing.tree.*; +///#else import com.sun.java.swing.*; import com.sun.java.swing.event.*; import com.sun.java.swing.tree.*; +///#endif import java.awt.*; import java.awt.event.*; import java.io.*; diff --git a/jode/jode/swingui/PackagesTreeModel.java b/jode/jode/swingui/PackagesTreeModel.java index fe1b5be..963b923 100644 --- a/jode/jode/swingui/PackagesTreeModel.java +++ b/jode/jode/swingui/PackagesTreeModel.java @@ -1,8 +1,14 @@ package jode.swingui; import jode.bytecode.ClassInfo; +///#ifdef JDK12 +///import javax.swing.tree.TreeModel; +///import javax.swing.tree.TreePath; +///import javax.swing.event.TreeModelListener; +///#else import com.sun.java.swing.tree.TreeModel; import com.sun.java.swing.tree.TreePath; import com.sun.java.swing.event.TreeModelListener; +///#endif import java.util.*; public class PackagesTreeModel implements TreeModel {