13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.6 Dispensing with Applets131documentati<strong>on</strong> path. You should always use this instead of hard-codingthe full URL, or a change in directory structure or server c<strong>on</strong>figurati<strong>on</strong>might break all of your links.@linkAllows you to embed a cross-reference to another secti<strong>on</strong> of the program’sdocumentati<strong>on</strong> directly in comment text. The format of a reference is thesame as that for the @see tag.This list is not complete. As always, see the official documentati<strong>on</strong> 8for details.5.6DISPENSING WITH APPLETSWhile this book does not cover writing applets, we should menti<strong>on</strong> that, sincean applet does not (generally) have a main() method, you need something elseto launch it outside of a browser. Enter appletviewer. This program providesan executi<strong>on</strong> envir<strong>on</strong>ment for applets.Why No Applets?The decisi<strong>on</strong> to not cover applets was based both <strong>on</strong> limited space and<strong>on</strong> some deployment issues with applets. A surprisingly large number ofpeople are running with either very old browsers that support <strong>on</strong>lyJava 1.1.x features, or that support Java runtime plug-ins but do not havethem installed or enabled. Also, applets have severe limitati<strong>on</strong>s (for soundsecurity reas<strong>on</strong>s), and enabling various features requires a good understandingof the SecurityManager Java classes, which could fill a bookby themselves. We chose to minimize coverage of applets for thesereas<strong>on</strong>s.8. http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!