This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes MediaTracker and graphics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "MediaTracker and graphics" Watch "MediaTracker and graphics" New topic

MediaTracker and graphics

Chris Masters

Joined: Apr 13, 2001
Posts: 21
I am currently implementing a class that sends a dynamically generated graph to the printer. The implmentation uses a chart control program that I genrates these dynamically created graphs as a Graphic output that is then formatted and sent to the printer.
My problem is that I need to create a wait() of some sort to pause the program while it preforms this action.
I was looking at my options and since the MediaTracker looked to be the most promising way of pausing the code while it painted the image that was going to the printer. However the MediaTracker would not accept the Graphic output. Is there another method like mediatracker that works with the Graphic class, in the Java 1.1.x package?
I agree. Here's the link:
subject: MediaTracker and graphics
Similar Threads
mediatracker and streams
redirect output to printer
Want to create Image from byte [] from internet
Ajith or paul help me
output to the printer ???