Skip to main content

How to set path in Swing to pick the image?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
arnavkumartechno
Offline
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?