August 2004
Intermediate to advanced
480 pages
9h 41m
English
Here are a few neat things that you can do within your applet, including some that might be downright necessary.
The status bar of the browser typically will display messages in the bottom-left corner. This feature is so retro mid-90s, it is impossible to resist.
applet.showStatus("All your base are belong to us. Ha ha ha");
Nuff said.
You can redirect the browser using the showDocument() method, like this:
try {
URL url = new URL(getDocumentBase(),
"http://www.example.com/some.jsp");
applet.getAppletContext().showDocument(url);
} catch (MalformedURLException e) {
//deal
}
You can pass a parameter into an applet ...
Read now
Unlock full access