Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joined: Jul 16, 2001
I'm sorry Sir, I couldn't get your code working. I got the following error I couldn't debugg: java.lang.ClassCastException: RectDrawer at sun.applet.AppletPanel.createApplet(AppletPanel.java:579) at sun.applet.AppletPanel.runLoader(AppletPanel.java:515) at sun.applet.AppletPanel.run(AppletPanel.java:293) at java.lang.Thread.run(Thread.java:484) Could you, please, take a look at it? Thanks!
Joined: Jan 09, 2001
Hi Dalibor, Nathan has not given you an Applet. Therefore you can't use AppletViewer to run it! He has given you an application ... Just type the following on a DOS command line: java RectDrawer after you have compiled the application: javac RectDraw.java Regards, Manfred.