How would I make something like a high scores function on a java applet? Like how would I record the score the person got and then access later?
Hawkpath
-2
Junior Poster in Training
Recommended Answers
Jump to PostWhere do you want to save the scores? Do you have a server and a database?
Jump to PostThis is a pretty difficult problem, actually. The applet security model is based on the applet running in total isolation, so it can't really communicate with the world. There is a way to do it, but it's very clunky and really a last-ditch solution. I understand that servlets offer some …
Jump to PostDue to Java security reason if a class extends Applet it cann't:
save any records on a file
open and read a file, and
alter a file.
However it may record scores in an array. As long as the program runs, one may access the data. If the program terminates …
Jump to Post"Terminate" means cann't restart. One cann't use Applet method void start() to restart. One has to use init() to start a new run.
All 13 Replies
NormR1
563
Posting Sage
Team Colleague
jon.kiparsky
326
Posting Virtuoso
tong1
22
Posting Whiz
Hawkpath
-2
Junior Poster in Training
tong1
22
Posting Whiz
jon.kiparsky
326
Posting Virtuoso
Hawkpath
-2
Junior Poster in Training
jon.kiparsky
326
Posting Virtuoso
tong1
22
Posting Whiz
jon.kiparsky
326
Posting Virtuoso
tong1
22
Posting Whiz
robertsmith632
0
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.