| Java Applets (4) |
How do you open a URL from an applet?
(1 votes). Leave comments and/ or rate it.
Question: How do you open a URL from an applet?Answer: By using the method showDocument(URL) see the example below. This code will load the file test.html from the same directory where the applet is situated on the server and if the file is not found display error message on the status bar.
Comments:
|