Toolkit.getDefaultToolkit

Toolkit.getDefaultToolkit

Class Overview | Class Members | This Package | All Packages

Syntax
public static synchronized Toolkit getDefaultToolkit()
Returns
the default toolkit.
Description
Gets the default toolkit.

If there is a system property named "awt.toolkit", that property is treated as the name of a class that is a subclass of Toolkit.

If the system property does not exist, then the default toolkit used is the class named "sun.awt.motif.MToolkit", which is a motif implementation of the Abstract Window Toolkit.

Exceptions
AWTError if a toolkit could not be found, or if one could not be accessed or instantiated.