Is there in which I could run a jar using an applet?
Yes. Though it is not the best way to go about showing a GUI from an applet.
Add the Jar to both the compile-time & run-time class-path (int the archive
attribute) of the applet. Within the applet init()
, remove start();
and add the code within the current main(String[])
. Vis.
UserInterface runner = new UserInterface();
runner.Interface();
MainCode run = new MainCode();
run.Change_InterFace();
Preferably that code should be called on the EDT (Event Dispatch Thread). See Concurrency in Swing for more details.
But the code will have problems as an applet, since it attempts to access resources by File
rather than URL
. This has been discussed in the last 24 hours.
Noting that is 443 lines of code dump at the paste bin,this is as far as I am prepared to investigate. You have ..around 17 hours left till the dead-line, so you'd better get cracking.