• Post Reply Bookmark Topic Watch Topic
  • New Topic

converting codebase  RSS feed

kuls ab
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am basically writing some code that makes a line graph, using Threads and seperate classes etc.. so originally the class that did the graphing was an applet. I am trying to run this as standalone and using another class to have main()
SO far I think it has been ok where I use a Frame to hold the applet and run init() by creating an object instance of my applet class. Also the HTML file that ran this Applet.class had some parameters. I have managed to just hard code them into the JAVA class applet file but one of them I do not know what to do.
So my HTML snippet is:

So for codebase="." I originally had in the applet code:

mfile I just set to "market.txt" which is fine, but I do not know what to replace getDocumentBase() with as that expects a URL object. I did try:

so that typecast attempt did not work. Any help is appreciated. Thanks
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!