Skip to main content

How to set path in Swing to pick the image?

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-10-25

I am new with java swing. And i am trying to put an image on jFrame. It works but i have to give the path of the image by coding it. Is there something to take image path automatically?