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.

Results 1 to 7 of 7

Thread: Not sure how to do this

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    9
    My Mood
    Dead
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Not sure how to do this

    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.

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Not sure how to do this

    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!

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Location
    Mumbai
    Posts
    10
    My Mood
    Cheerful
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Not sure how to do this

    You can use Scheduler to do this...

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Not sure how to do this

    allow programs only at a certain time
    Does that mean the program will prevent those other programs from executing at other times?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Sep 2014
    Posts
    9
    My Mood
    Dead
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Not sure how to do this

    Quote Originally Posted by Norm View Post
    Does that mean the program will prevent those other programs from executing at other times?
    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 ---

    Quote Originally Posted by KevinWorkman View Post
    What have you tried? Which part of this is giving you trouble?

    What happens if the user changes their system time?
    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.

  6. #6
    Junior Member
    Join Date
    Sep 2014
    Posts
    9
    My Mood
    Dead
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question I need help with something

    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

  7. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Not sure how to do this

    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.