Help with radiobutton!
Hello there im struggling to add a radiobutton formula to my project.
What i finally aim to create is a small map of my college, which has a radiobutton with two colums, this can be used to find out the distance between college hotspots.
To do this i have created several different maps with hotspots on them, when the two radiolabel colums are filled out, this will show a picture of the map with the two hotspots highlighted.
I feel i have everything setup perfectly, however my createImageIcon is not working and it's frustrating me as i do not know what i am doing wrong!
Heres a snippet!
Any help would be appreciated!
picture.setIcon([COLOR="Red"]createImageIcon[/COLOR]("image\" + receptionString + ".png"));
picture.setPreferredSize(new Dimension(177, 122));
Are you sure that the program is looking in the right spot for the images? Do you know what the user directory for this app is? Is it Jar'd or an applet?
To find the user directory, have this line of code run:
and this may be the base path where your program starts looking for the icon.