Java Image help

Hi am rather new at java so i am i little stuck with importing images into my java GUI`s.Can someone please give me the correct code for the path of a image and how import it.
Thanks.
1 answer Last reply
More about java image help
  1. I'm assuming your using Swing. Try this stack overflow post for adding an image to a JPanel. The image path can just be a string - just the path of the file system e.g. [cpp]c:/myImages/myImage.png[/cpp]
Ask a new question

Read More

Programming Java Apps