hybrid : Java Glossary


A hybrid aka switch hitter is an Applet or JApplet that has had some code added to it so that it can also be run from the command line as an application. For AWT (Advanced Windowing Toolkit) Applets the code looks something like this: For Swing JApplets the code looks something like this: That code is quite crude. It will not do such things as:

The easiest way to deal with these problems is to use two Applet constructors, one the usual default constructor and one that passes the param information in taken from the command line. Inside you can keep track of which mode you are running in with a Boolean you set in the constructor. getParameter( favouriteColour ) will return the String orange.

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number