|
![]() |
"The location is probably incorrect and there is probably no png image file at that location."
Frederick Douglass wrote:
The card file in question is 1.4M. Maybe that is too large for an individual Java program but why is it not complaining
and is there a parameter I can reset to assign it that much space ?
Frederick Douglass wrote:
As I see it, the simplest way to handle a deck of cards is to read them into the program's main memory,
which is why I'm trying to do it this way. If the way YOU are describing how to do it is indeed 'the Java way'
of doing it then imo that is Java's problem ( effectively insisting on doing it the hard way ).
Probably you are just missing a / to make the file location reference absolute rather than relative.
1. Host the images on a website and retrieve them using http.
2. Place the images on the class path (e.g. as a resource inside the distribution jar for the application) and load the images from there.
""You are storing a reference to the image, in memory, just keep it around as long as you want.
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
|