Hey there Sign in to join this conversationNew here? Join for free

Java HELLPP!!

Announcements Posted on
Study Help needs new mods! 14-04-2014
Post on TSR and win a prize! Find out more... 10-04-2014
    • Thread Starter
    • 0 followers
    Offline

    ReputationRep:
    So basically i have got to do this in Java, and i havent got a clue to start can someone help me please it would be much appreciated Please please pleaase


    create part of a scheduling system for internal television programmes in a hotel. The system
    enables a member of the hotel staff to set up a week’s viewing schedule and view the result.
    The hotel schedule is much simpler than a broadcast television schedule because:
     There are only two channels (Channel 1 and Channel 2)
     The channels are only on air from 6 am until midnight
     The duration of every programme item is in multiples of ½ hours
     There is only a 1 week schedule (the schedule is changed every week).

    The Programmes
    The different kinds of programmes that the hotel shows are:
    1. Hotel Information
    2. Comedy2
    3. Drama
    4. Film
    5. Music Video

    All programmes have a title, a duration (in ½ hours), and a start time. The start time is set
    when a programme is added to a schedule.

    The hotel information programmes have two distinct types:
    i. Still pictures e.g., Evening menu
    ii. Videos – e.g., video of beach activities, local tourist attractions, fire safety

    Films, Comedy and Drama have the normal information that one would expect including
    director, actors and a short synopsis (description of what it is about). Films also have a
    rating (All, PG, 15, 18).

    Most programmes are available to anyone but some must be rented by a guest wishing to
    view them. These rentable programmes are usually films (but not always) and provision
    should be made for allowing any future programme to be rentable. Rentable programmes
    are special and allow a potential viewer (someone who might want to rent them) to watch a
    trailer. The trailer is typically just the beginning of the programme, i.e., the first few
    minutes. Any rentable item should allow the scheduler to set the duration of the trailer.
    Rentable programmes should display in some way that they are rentable.

    Music Video Programmes are not single videos but videos that have been edited into a onehour compilation
    The Schedule

    Each day has a schedule. The schedule has a maximum duration of 18 hours (made up of
    half hour slots) and contains programmes that are sorted by start time. Programmes can be
    removed or added to a schedule. This would be done by a User who is setting up a
    schedule. If the schedule is full, programmes would need to be deleted to make space for
    new programmes in the schedule. Programmes can be added to the end of a schedule or
    inserted between two items already in the schedule. In either case, the end of the schedule
    must not be after midnight.

    So, if a schedule has an hour space in the middle but is otherwise full and a User tries to add
    a 2 hour film, one of three things should happen:
    1. the User should be prevented from adding this until a suitable space exists
    2. The schedule should allow the insertion but delete programmes that are
    overlapped
    3. The schedule should allow the insertion but remove any programme(s) at the
    end of the schedule

    You are required to decide, as the software designer, which of the actions described above
    is going to be performed by your system.

    Your schedule must allow programmes to be added at a specific start time (which is when
    the start time of the programme would be set) and added to the end of the schedule.

    The Graphical User Interface (GUI)

    The software system must be a desktop application (i.e., not an applet) which has a
    graphical user interface (GUI) which must be implemented using Java Swing components.

    The GUI should enable a User to:
     Display the schedule for a day (both channels)
     Display all available programmes (sorted alphabetically), i.e., this will include
    programmes that are scheduled and programmes that are not in the schedule.
     Display all programmes of single type (e.g., Comedies)
     Display all films that must be rented
     Add a programme to the schedule
     Set the trailer duration on a rentable programme
     Remove a programme from the schedule
     Select a programme item and display all the details relevant to a particular type of
    programme

    Note: the GUI must not have any functionality for programme creation – programmes
    already exist in a database of available programmes.
    • 1 follower
    Offline

    ReputationRep:
    This looks like coursework, so I suppose it's from a course where you've learned the basics of Java and Swing GUI programming. What exactly do you need help on? Where are you stuck?
    • Thread Starter
    • 0 followers
    Offline

    ReputationRep:
    yeah it is. just how to start the programming off im so stuck i dont know how to start it off
    • 2 followers
    Offline

    ReputationRep:
    What is your experience?

    I'd start by planning the classes you'll need to create (draw a class diagram?) and what methods/attributes each one will need, which is just a case of pulling the relevant details out of the description.
    • Thread Starter
    • 0 followers
    Offline

    ReputationRep:
    ok, ive got all the search methods but im really confused on how to do the GUI. thats my main problem at the moment
    • 2 followers
    Offline

    ReputationRep:
    Yeah just google the Swing API, doing GUI that way is not too hard just fiddly as ****, I used to hate that ****

Reply

Submit reply

Register

Thanks for posting! You just need to create an account in order to submit the post
  1. this can't be left blank
    that username has been taken, please choose another Forgotten your password?

    this is what you'll be called on TSR

  2. this can't be left blank
    this email is already registered. Forgotten your password?

    never shared and never spammed

  3. this can't be left blank

    6 characters or longer with both numbers and letters is safer

  4. this can't be left empty
    your full birthday is required
  1. By completing the slider below you agree to The Student Room's terms & conditions and site rules

  2. Slide the button to the right to create your account

    Slide to join now Processing…

    You don't slide that way? No problem.

Updated: April 23, 2012
Article updates
Reputation gems:
You get these gems as you gain rep from other members for making good contributions and giving helpful advice.