Introduction - If you have any usage issues, please Google them yourself
Using java to achieve print function to print using java, java.awt provides some printing API, to achieve print, we must first obtain a print object, and then implement the interface methods inherited Printable print, so the printer to print, and finally with direct output with Graphics2D direct output.