• Post Reply Bookmark Topic Watch Topic
  • New Topic

accepting image path from user  RSS feed

 
Kuhu Biswas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my class basically extends Frame. i want to know how do i let the user specify the path for an image which i shud be able to retrieve and use in my rest of the code..
 
Petrus Pelser
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to use an input dialog and assign the response to a variable which will be used as the argument to the method which loads the image.

e.g.



In this example, the user will also need to input the path and extension of the file.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!