Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Java applet for Rubik's cube

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I posted this topic on the Beginner's forum, and was advised to try here because it relates to applets.

I have the source java code for a rubik's cube java applet. I want to be able to save the game at any point. I've been told that I need to run the code as a java application so that I can save to my hard disk.

I have general programming knowledge of C, VB, a little C++, and object-orientatiion - but very little java. If someone can give me a few specific instructions, I might be able to convert the code myself. This is a one-off java job. Right now, I don't have any need to learn java other than to convert this applet to a java application.

Regards,
Alan
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Applets are forbidden from writing to the local file system. It's a security feature to prevent malicious applets from taking over your computer. There is a way around this feature. You have to prove 1. who you are and 2. that the applet has not been tampered with. One can accomlish this through a Signed Applet.
It may be less of a pain to persist your data on the server. There's information in the Java Tutorial on Working with a Server-Side Application.
 
reply
    Bookmark Topic Watch Topic
  • New Topic