• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Print a graphic

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic