Microsoft SDK for Java

PrinterDevice Class Constructors

The PrinterDevice Class contains the following constructor:

PrinterDevice(Graphics g)

Creates a printer device object.

Syntax

public PrinterDevice(Graphics g) throws DeviceException;

Parameters

g The graphics object that the device is created for.

Exceptions

com.ms.awt.DeviceException if the graphics object is not an instance of the FxGraphics or the GraphicsX extended graphics class.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.