List of usage examples for java.awt Graphics toString
public String toString()
Source Link
From source file:Main.java
public void paint(Graphics g) { g.drawString(g.toString() + "", 10, 30); }