Results 1 to 9 of 9
  1. #1
    tirwit is offline Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

    Default Calendar application to schedule vacations

    Hi

    I need to create a program to schedule vacations for employees. I'm new to Java and I don't know how to work on the dates. What package should I use? I've heard of Calendar, Date and DateFormat. Should I use any of these, or is there a better one?

    Thanks
    Tirwit

  2. #2
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Those are the ones I'd use. Those three combined have enough date functions to make a fantastic calendar application.

  3. #3
    tirwit is offline Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

    Default

    Thanks :)

    Can you give me some ideas to start please? (this is my 4th day of Java :-P)

  4. #4
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Are you looking to make it a GUI application? Then you'll want the Swing GUI API + tutorials...
    javax.swing (Java 2 Platform SE v1.4.2)
    Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    For the date functions themselves,
    Calendar (Java 2 Platform SE v1.4.2)
    Date (Java 2 Platform SE v1.4.2)
    DateFormat (Java 2 Platform SE v1.4.2)

    I'm not sure how much you know about Java itself, but...
    Trail: Getting Started (The Java™ Tutorials)

    If you're brand new to programming itself, a Calendar may not be the best way to go. However, if you're persistent and willing to put in the effort, you shouldn't have too much of a problem.

  5. #5
    tirwit is offline Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

    Default

    Thanks =)

    Not a GUI. Just a script to schedule some vacations on a calendar for several persons. It's just a exercise in the workshop I'm having.

  6. #6
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Then you'll also want to familiarize yourself with the Scanner utility that Java provides for processing input from a console.
    Scanner (Java 2 Platform SE 5.0)
    Java Tips - Scanning text with java.util.Scanner

    Are you going to be saving the calendar to the disk? I.E. storing it as a file to be reopened later?

  7. #7
    tirwit is offline Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

    Default

    oh no... Sorry, I didn't give you the right information. When I said script, I meant just the lines of code.

    This is not a interactive program. The 4 persons I have to define will have their names, ages, amount of vacation days available, etc, already in the source code. The exercise is to make us familiar with the Date and Calendars packages.

  8. #8
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Ah. Then you already have everything you need. :)

    If you have specific issues with designing the program itself, start a new thread; and if you get error messages, make sure you paste the full and complete message(s) (no cutting stuff out!). If something "doesn't work," make sure to explain how it should work instead.

    Best of luck!

  9. #9
    tirwit is offline Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

Similar Threads

  1. Programming NFL Schedule
    By PhilArmstrong in forum New To Java
    Replies: 0
    Last Post: 03-04-2010, 03:52 PM
  2. Java Schedule program
    By jaysyshaw in forum New To Java
    Replies: 0
    Last Post: 01-13-2010, 01:07 AM
  3. How to schedule a job in java
    By Malathi in forum Web Frameworks
    Replies: 4
    Last Post: 03-27-2009, 11:14 AM
  4. Java application using google calendar
    By nikolas8 in forum Java Applets
    Replies: 3
    Last Post: 03-20-2009, 01:49 AM
  5. GanarMas Coastal Vacations
    By rumbos in forum Web Frameworks
    Replies: 0
    Last Post: 12-10-2008, 03:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •