+ 1

What is getDocumetBase() ?

and how it is different from getCodeBase()?

15th May 2017, 2:15 PM
Gamer
Gamer - avatar
1 Answer
+ 2
getDocumentBase() gets the URL of the document in which an applet is embedded. getCodeBase() gets the base URL. This is the URL of the directory which contains the applet. Source: http://stackoverflow.com/questions/23817796/how-do-you-use-getdocumentbase-and-getcodebase-correctly-in-java-applets Remark: All credit to Braj from StackOverflow who has explained what you are looking for in a similar question there.
15th May 2017, 2:59 PM
Billy Tsouvalas