• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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 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.

I have general programming knowledge of C, VB, and a little C++, so possibly if someone can give me a few general instructions, I may be able to convert the code myself. This is a one-off java job. I don't really have any need to learn java other than to convert the applet to a java application.

Regards,
Alan
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Though this is an area I'm not very familiar with, I believe that letting the applet write a save file to your local hard drive is merely a matter of granting it that particular ability via Java's security policy. This may involve signing the applet's JAR (all done with the JDK tools, so no need to buy a "real" validated certificate from Verisign). You might try the Applets forum here.

If you want to convert it into an application, you have to create a top-level frame/window to hold the components of the applet. This, again, is probably something many people in the Applets forum have done.

Writing that save file will be something more people can help with.
 
Normally trees don't drive trucks. Does this tiny ad have a license?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic