Example usage for java.awt AWTException printStackTrace

List of usage examples for java.awt AWTException printStackTrace

Introduction

In this page you can find the example usage for java.awt AWTException printStackTrace.

Prototype

public void printStackTrace(PrintStream s) 

Source Link

Document

Prints this throwable and its backtrace to the specified print stream.

Usage

From source file:com.grillecube.editor.ModelEditor.java

private void useRobot() {
    try {// w  w  w  .  j  a  va  2  s  .c  o m
        this._robot = new Robot();
        this._engine.getRenderer().getGLFWWindow().addMouseEnterListener(this);
        this._engine.getRenderer().getGLFWWindow().addMouseExitListener(this);
    } catch (AWTException e) {
        Logger.get().log(Level.WARNING, "Tried to a use Robot but it failed: ModelWindow.useRobot()");
        e.printStackTrace(Logger.get().getPrintStream());
    }
}