is it possible to copy and paste the source code above into the EJS Model Custom and get the code to work?


It will be cool if it can be done !!??

anyway this is the code message

Generating simulation file
  D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java ...
D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java:93: illegal start of type
  import java.applet.*;  // > Custom.Lib Page:4
  ^
D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java:93: expected
  import java.applet.*;  // > Custom.Lib Page:4
                      ^
D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java:94: illegal start of type
  import java.awt.*;  // > Custom.Lib Page:5
  ^
D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java:94: expected
  import java.awt.*;  // > Custom.Lib Page:5
                  ^
D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java:95: illegal start of type
  import java.util.*;  // > Custom.Lib Page:6
  ^
D:\EasyJavaSimulation\Ejs3.47_080301\Ejs\Simulations\_apps\a.app\a.java:95: expected
  import java.util.*;  // > Custom.Lib Page:6
                    ^
6 errors
Compilation produced an error!