So I am making a program that will allow programs only at a certain time and i'm not sure how I would set the time for the program.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
So I am making a program that will allow programs only at a certain time and i'm not sure how I would set the time for the program.
What have you tried? Which part of this is giving you trouble?
What happens if the user changes their system time?
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
You can use Scheduler to do this...
Does that mean the program will prevent those other programs from executing at other times?allow programs only at a certain time
If you don't understand my answer, don't ignore it, ask a question.
So I want the program to run at 5pm-7pm and from 7:01-4:59 you won't be able to run the program.
--- Update ---
I should of given more information sorry. I have tried to set a counter and that didn't work, I just have to figure out how to set a time system that only allows certain times that a program can run, and i have set administrator only permissions on resetting the time so they can't do that.
Hi,
So I am making a program that allowing programs to be only accessed at certain times and I don't know how to make it so than it closes out of the application. What I have so far is how to check the system time and have popups that tell the user when he/she is allowed on the program but i'm not sure how to allow and deny the permissions before and after the time allowed so if you could help that would be great.
Thanks
Threads merged and moved - there is no code.
Please don't start multiple threads on the same topic, and give your threads useful titles, ones that give some indication of the help needed or topic to be discussed.