Using Pictures with a ComboBox for my business need help
I got a program and I decided to update the program. One feature I was interested in was using a Combobox and having it change the pictures of the items I am selling. I was able to achieve this buy storing an array into the comboBox. Now as my business expands and I want to sell additional items I would like to add different pictures. The problem that I foresee is when I compile the program into a Jar file it seems to embed the picture file into the Jar file that is used to execute the program. Is it at all possible, to have it search a directory for the pictures when the files become Jar? Would that work in Theory? I can post my code if that seems like it will help.
Re: Using Pictures with a ComboBox for my business need help
Yes, it would certainly work. You could have a set-up file, and could use the command-line to tell your program where to look for the set up file. I've done this using JAXB and an XML set up file with some decent success.