Hello,
I setting a image using the ImageIcon getResource syntax and I am I having trouble displaying an Image. It works fine when I type the String and not store it in a variable. It displays the picture flawlessly. Now when I try the same thing and store the String into a variable it is unable to fine the file. Let me show you the link of code that is troubling me.
NameofProduct is the Variable holding the String. See I am using JTextField retrieve method to get the data and Store it in NameofProduct,and I then would like it to display the corresponding picture. I have achieved this using the JComboBox my only hurdle is trying to fiqure out away of using the getResource Method to use the String in the Variable and not the variable itself. I hope this makes sense.