> set icons? , do i have to have the image in the same
> folder as where the code is saved? I have not been
> able to find any code showing how to apply images
> onto buttons on a GUI.
Look at the tutorials:
http://java.sun.com/docs/books/tutorial/uiswing/components/button.html
> set icons? , do i have to have the image in the same
> folder as where the code is saved? I have not been
> able to find any code showing how to apply images
> onto buttons on a GUI.
Did you atleast read reply 2 and 4?Have you ever read the JButton API?There's no necessity that the image has to be in the same folder.You use have to specify the absolute path of the image when you create an instance representing it.