How do I explicitly set the Toolkit for my program?

John Zukowski

Either by setting the AWT_TOOLKIT environment variable or the awt.toolkit system property.

The AWT_TOOLKIT environment variable can be set to XToolkit or MToolkit depending upon which of the Unix toolkits you want to use by default. For the system property, you would use the explicit class name: java -Dawt.toolkit=sun.awt.X11.XToolkit App or java -Dawt.toolkit=sun.awt.motif.MToolkit MyApp

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.