Re: How to send a string to default system printer in Clojure

2017-10-03 Thread Matching Socks
Java says drawString while Clojure says drawstring. The compiler may be using introspection to find that method, and thus will not give you a compile-time message about the mismatch. I think you could avoid the introspection by using the "graphics" method argument instead of the "g2" variable,

How to send a string to default system printer in Clojure

2017-10-03 Thread Darnaroth Darnarowth
Hello all I am trying to print a string to my printer. I know that if I want to do that from Clojure I need to use Java Interop, specifically the Printable interface and the classes Graphics/Graphics2D and PrinterJob, but I have trouble to convert the equivelant Java code to Clojure. The java co