Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

load image in applet by browsing through a dialog box  RSS feed

 
Deepika Singh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
actually i want to load image through a dialog box in applet.
my project is on image enhancement .so please could anyone help me out for this problem as soon as possible because i have to submit it on 15th october....
thanks !!!
 
Rob Spoor
Sheriff
Posts: 21087
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Deepika",

Please read your private messages regarding an important announcement.

Thank you,

Rob


Even though you are in a hurry, please Ease Up.

Now for your problem. Check java.awt.FileDialog and javax.swing.JFileChooser. You can't read anything from the local file system just like that though - applets are run in a sandbox with no access outside of that. That includes anything but the site the applet is running on.
You can get past that by signing the applet. Check the Java Tutorial for more info on that.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!