Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File save/load doesn't work in JApplet

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I just put my chess application on internet...
chess applet

For some reason, the file/save buttons don't seem to do anything.
They work fine in the application version, and also when I run the JApplet locally from within my Netbeans 5.0 IDE.

Any reason they won't work when site is on internet as it is now?

Also, it doesn't seem to refresh properly, it just doesn't load, and you have to open a new browser and load it in again.
Is this best done using the Start method or Init, I always forget.
Thanks.

Please take a look at site, there might be a couple of bugs in it still, the boards don't seem to work on Applet version, but work fine on the application.

Thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by colin shuker:

Any reason they won't work when site is on internet as it is now?


Security. If any old applet could read and write files on your disk, then applets would be dangerous things indeed, no? So JVMs that execute applets from the Internet are set up to forbid these things by default. For an applet to be able to read/write files, it needs a digital signature, and then it needs to use security APIs to request that capability from the user.

Here is an excellent place to start learning about signed applets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic