Example usage for java.awt Graphics toString

List of usage examples for java.awt Graphics toString

Introduction

In this page you can find the example usage for java.awt Graphics toString.

Prototype

public String toString() 

Source Link

Document

Returns a String object representing this Graphics object's value.

Usage

From source file:Main.java

public void paint(Graphics g) {
    g.drawString(g.toString() + "", 10, 30);
}