Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting codebase

 
kuls ab
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic