hybrid : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

hybrid
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:

http://mindprod.com/jgloss/hybrid.html

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

J:\mindprod\jgloss\hybrid.html
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.

IP:[65.110.21.43]
Your face IP:[44.222.194.62]
You are visitor number