• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File save/load doesn't work in JApplet

 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
For my next trick, I'll need the help of a tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic