I''ve searched all my books and came up with nothing on this. How can I print graphics from java? All I want to do it print boxes around pieces of text, but according to my books, I can only print text.
Does anyone know, perhaps, a workaround for this? I was thinking about exporting the information to a file and writing a program in C++ to do the printing, but that''s not very conveniant to the user.
Now, most of this works. The only place I'm getting an error now, is at the "getPrintJob(this, name, props)" method. It can't convert "this" to a frame. I have the code inside of a Java Applet. Does it need to be inside a Java Application?
What I'm trying to do is print graphics. (a rectangle in this case) This method above allows that.