List of usage examples for java.awt.print PrinterException getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:de.dfki.owlsmx.gui.ResultVisualization.java
public void PrintGraphics2DToPS(String path) throws IOException { try {/*from w ww . j a v a 2 s . c o m*/ //TODO implement saving to PS GUIState.displayWarning("Incomplete feature", "This feature is still under heavy development and can not yet be used"); print2DtoPS printer = new print2DtoPS(path, chartPanel, graphPrintHeight, graphPrintHeight); printer.print(this.createRPPanel().getGraphics(), new PageFormat(), 0); } catch (PrinterException pe) { GUIState.displayWarning(pe.getClass().toString(), "Couldn't create PS file!\n" + pe.getMessage()); } }