Toolkit
implementation provides the following
advantages:
The new Toolkit (XToolkit) is default both on Linux and Solaris.
You can explicitly set the toolkit for an applet or application using an environment variable or a system property. Keep in mind that the environment variable overrides the system property.
csh: setenv AWT_TOOLKIT XToolkit #selects the XToolkit setenv AWT_TOOLKIT MToolkit #selects the MToolkit ksh/bash: export AWT_TOOLKIT=XToolkit export AWT_TOOLKIT=MToolkit
java -Dawt.toolkit=sun.awt.X11.XToolkit MyApp java -Dawt.toolkit=sun.awt.motif.MToolkit MyApp
If the browser is started from a terminal window, the environment variable must be set in the terminal window before launching the browser. If the browser is launched from a desktop icon or menu, the toolkit for an applet cannot be set using an environment variable. The Java Plug-in Control Panel should be used instead.
$java_home/bin/ControlPanel
-Dawt.toolkit=sun.awt.X11.XToolkit -Dawt.toolkit=sun.awt.motif.MToolkit