Java.awt : Contains all of the classes for creating user interfaces and for painting graphics and images.
GraphicsEnvironment class : The
GraphicsEnvironment class describes the collection of
GraphicsDevice objects and
Font objects available to a Java(tm) application on a particular platform. The resources in this
GraphicsEnvironment might be local or on a remote machine.
getLocalGraphicsEnvironment():Returns the local GraphicsEnvironment.
Returns an array containing the names of all font families in this GraphicsEnvironment localized for the default locale, as returned by Locale.getDefault().