On Tue, 15 Oct 2013 01:56:33 -0700 (PDT), p7371464@gmail.com wrote:
OS: Win 7 64 bit
Java: java version "1.6.0_29" 32 bit
And that didn't strike you as odd ? I recommend starting by getting the
upropriate (and current) version of Java for your machine. Your Java
version is two years old and has many large and dangerous security flaws.
Note that Java 7 is the current version. Java 6 is no longer even supported
officially.
As for your problem, you are not giving the image any time to load, and
proceed to trying to print it without ever even checking if it was finished
loading, or loaded even partially.
I'm pretty rusty at loading Images through Java libraries, so I hope this
is the apropriate way, if not, maybe someone else here could correct me.
You get a decent example at
<http://docs.oracle.com/javase/7/docs/api/java/awt/MediaTracker.html>
and you don't need to worry about the Applet crap, but MediaTracker does
need a Component for some obscure reason. You can simply pass it a new
JFrame() and all should be good.
Liebe Gruesse,
Joerg
it. javax.ImageIO.read() loads the complete image before returning from
the call.