I have upgraded the Java code to fix most of the deprecated methods. I still have the same component issues using a theme as I did before the upgrade. The following warnings are beyond my skills to fix. I have attached the JAPI2 Java source if someone wishes to try and take this to the next step.
javac -Xlint:deprecation -O JAPI.java && jar cf JAPI.jar *.class *.gif
./JAPI_Thread.java:94: warning: [deprecation] readLine() in DataInputStream has been deprecated
clienthost = in.readLine();
^
./JAPI_Thread.java:534: warning: [deprecation] readLine() in DataInputStream has been deprecated
String s = in.readLine();
^
./JAPI_Thread.java:632: warning: [deprecation] readLine() in DataInputStream has been deprecated
String title = in.readLine();
^
./JAPI_Thread.java:1097: warning: [deprecation] readLine() in DataInputStream has been deprecated
String file = in.readLine();
^
./JAPI_Thread.java:1110: warning: [deprecation] readLine() in DataInputStream has been deprecated
String file = in.readLine();
^
./JAPI_Thread.java:1247: warning: [deprecation] readLine() in DataInputStream has been deprecated
String title = in.readLine();
^
./JAPI_Thread.java:1308: warning: [deprecation] readLine() in DataInputStream has been deprecated
String item = in.readLine();
^
./JAPI_Thread.java:1338: warning: [deprecation] readLine() in DataInputStream has been deprecated
String item = in.readLine();
^
./JAPI_Thread.java:1620: warning: [deprecation] setLabel(String) in AbstractButton has been deprecated
((JAPI_Button)o[obj]).setLabel(newtext);
^
./JAPI_Thread.java:1624: warning: [deprecation] setLabel(String) in AbstractButton has been deprecated
((JAPI_Menu)o[obj]).setLabel(newtext);
^
./JAPI_Thread.java:2254: warning: [deprecation] getLabel() in AbstractButton has been deprecated
inhalt=((JAPI_Button)o[obj]).getLabel();
^
./JAPI_Thread.java:2256: warning: [deprecation] getLabel() in AbstractButton has been deprecated
inhalt=((JAPI_Menu)o[obj]).getLabel();
^
./JAPI_Thread.java:2360: warning: [deprecation] getLabel() in AbstractButton has been deprecated
out.sendInt(((JAPI_Button)o[obj]).getLabel().length());
^
./JAPI_Thread.java:2362: warning: [deprecation] getLabel() in AbstractButton has been deprecated
out.sendInt(((JAPI_Menu)o[obj]).getLabel().length());
^
./JAPI_Thread.java:2603: warning: [deprecation] readLine() in DataInputStream has been deprecated
String str = in.readLine();
^
./JAPI_Thread.java:3031: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3065: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3208: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3229: warning: [deprecation] readLine() in DataInputStream has been deprecated
String icon = in.readLine();
^
./JAPI_Thread.java:3251: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3274: warning: [deprecation] readLine() in DataInputStream has been deprecated
String icon = in.readLine();
^
./JAPI_Thread.java:3295: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3338: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3468: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3495: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3516: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3536: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3558: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3594: warning: [deprecation] readLine() in DataInputStream has been deprecated
String Appath = in.readLine();
^
./JAPI_Thread.java:3595: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3596: warning: [deprecation] readLine() in DataInputStream has been deprecated
String dir = in.readLine();
^
./JAPI_Thread.java:3651: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3679: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3680: warning: [deprecation] readLine() in DataInputStream has been deprecated
String but1 = in.readLine();
^
./JAPI_Thread.java:3705: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3706: warning: [deprecation] readLine() in DataInputStream has been deprecated
String but1 = in.readLine();
^
./JAPI_Thread.java:3707: warning: [deprecation] readLine() in DataInputStream has been deprecated
String but2 = in.readLine();
^
./JAPI_Thread.java:3732: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Thread.java:3733: warning: [deprecation] readLine() in DataInputStream has been deprecated
String but1 = in.readLine();
^
./JAPI_Thread.java:3734: warning: [deprecation] readLine() in DataInputStream has been deprecated
String but2 = in.readLine();
^
./JAPI_Thread.java:3735: warning: [deprecation] readLine() in DataInputStream has been deprecated
String but3 = in.readLine();
^
./JAPI_Thread.java:3864: warning: [deprecation] readLine() in DataInputStream has been deprecated
title = in.readLine();
^
./JAPI_Frame.java:34: warning: [deprecation] disable() in Component has been deprecated
public void disable()
^
./JAPI_Frame.java:43: warning: [deprecation] enable() in Component has been deprecated
public void enable()
^
./JAPI_Dialog.java:27: warning: [deprecation] disable() in Component has been deprecated
public void disable()
^
./JAPI_Dialog.java:33: warning: [deprecation] enable() in Component has been deprecated
public void enable()
^
./JAPI_Window.java:14: warning: [deprecation] disable() in Component has been deprecated
public void disable()
^
./JAPI_Window.java:21: warning: [deprecation] enable() in Component has been deprecated
public void enable()
^
./JAPI_Panel.java:17: warning: [deprecation] disable() in Component has been deprecated
public void disable()
^
./JAPI_Panel.java:24: warning: [deprecation] enable() in Component has been deprecated
public void enable()
^
./JAPI_Graphicbutton.java:64: warning: [deprecation] disable() in Component has been deprecated
public void disable()
^
./JAPI_Graphicbutton.java:71: warning: [deprecation] enable() in Component has been deprecated
public void enable()
^
./JAPI_Graphicbutton.java:97: warning: [deprecation] mouseUp(Event,int,int) in Component has been deprecated
public boolean mouseUp(Event evt, int x, int y)
^
./JAPI_Graphicbutton.java:112: warning: [deprecation] mouseDown(Event,int,int) in Component has been deprecated
public boolean mouseDown(Event evt, int x, int y)
^
./JAPI_Graphicbutton.java:119: warning: [deprecation] mouseExit(Event,int,int) in Component has been deprecated
public boolean mouseExit(Event evt, int x, int y)
^
./JAPI_Graphicbutton.java:127: warning: [deprecation] mouseEnter(Event,int,int) in Component has been deprecated
public boolean mouseEnter(Event evt, int x, int y)
^
./JAPI_Menubar.java:11: warning: [deprecation] disable() in JComponent has been deprecated
public void disable()
^
./JAPI_Menubar.java:18: warning: [deprecation] enable() in JComponent has been deprecated
public void enable()
^
58 warnings
jrs@laptop:~/japi/japilib/swing$