"...Note: If you're using an IDE and have difficulty, try this line of code instead:
Where is YOUR image stored in order that the program was able to access it
karol worek wrote:I was also reading that book. It's outdated. people now use JavaFX rather than awt and swing (which are outdated and not developed since long).
Norm Radder wrote:
I have my images in a folder (images) that is contained in the folder where I issue the java command.
K Richard wrote:Is it because its a Jpeg?, i notice you used a gif and also on the Oracle site found here:
They also use a gif in their example?
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Create Edit Print & Convert PDF Using Free API with Javahttps://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire