Tweet
import java.awt.*;
import java.applet.*;
import java.net.*;
/*
<applet code ="Bases" width=300 height=50>
</applet>
*/
public class Bases extends Applet
{
public void paint(Graphics g)
{
String msg;
URL url=getCodeBase();
msg="Code base : " + url.toString();
g.drawString(msg,10,20);
url=getDocumentBase();
msg="Document Base : " + url.toString();
g.drawString(msg,10,40);
}
}
Using getDocumentBase() & getCodeBase() in Java
Posted by
LAHAUL SETH
~
Using getDocumentBase() & getCodeBase() in Java
2012-01-07T21:28:00+05:30
LAHAUL SETH
Java
|
Java Applet
|
Comments
Using getDocumentBase() & getCodeBase() in Java
2012-01-07T21:28:00+05:30
LAHAUL SETH
Java
|
Java Applet
|