This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Couldn't find file: resource\images\el.png. Couldn't find file: resource\images\er.png
I have created a resource\folder folder that shows up in the NetBeans files window displaying the files contained.
The path coded matches the path on my PC.
When I try and load the files it returns null.
Can somebody please point out what I am doing wrong with this code?
I create resource folder in the source tree in Netbeans, not in the files window,
and it works fine - Netbeans packs this folder together with files into the jar,
and the code above loads the files from jar.
Joined: Aug 24, 2009
Thanks for the reply guys. I apologise for my delay in responding; due to a health problem/disability I am not always well enough to work on the PC. Thanks for the advice I am no longer getting a null hopefully indicating the png files are being found and loaded ok. Only problem now is graphics are not being displayed in the labels. However I use this forum, as last port of call, so will spend time analysing my code to see where I have coded in error before returning. Thanks once again.