Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Print a graphic  RSS feed

 
Humber Aquino
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone! I would like to know if i can draw things in some kind of panel but locating then using millimeter units, and then print them.
The thing is i have some kind of voucher this is the first time i have to deal with printing. I read some of the documents about it and they usually talk about printing graphics but located using pixel coordinates and not millimeter(or centimeter) coordinates.
Do i have to deal with this conversion or there's some class, recipe or framework to do so..
thanks in advance!
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't done any printing, but I know where some documentation is. Here is a link to Sun's web-site with a free tutorial:

Online Tutorial From Sun

If you prefer hard-copy, you might want to consider "buying Core Java, Volume II". If you decide to buy the books, the 4.0 version is really affordable. You might as well buy volumes I and II as a set:

Core Java I & II as a set (a resource kit) for Java version 4.

If you want the Java 5 versions of "Core Java". The chapter on printing is in Volume II, but I think that you would probably need the chapters on awt in volume I:

Core Java, Volume I for Java 5

Core Java, Volume II for Java 5

-- Kaydell

[ December 01, 2006: Message edited by: Kaydell Leavitt ]
[ December 01, 2006: Message edited by: Kaydell Leavitt ]
 
Humber Aquino
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank for the reply Kaydell!

I have the Core java Volume I and II (for SDK 1.4). I doen't talk much about printing(But it's a good start).

The Java tutorial is a good starting point but i read it already
Now i'm looking an interesting article from the java world.
http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print.html

The main problem i have is to print some graphics in some specific position in the paper. This position has to be located usin centimeters or millimeter units.

Thanks again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!