Results 1 to 3 of 3
  1. #1
    Che_Is_Alive is offline Member
    Join Date
    Nov 2009
    Rep Power

    Default Creating new instances of a Match over and over again

    Hey there :)

    Right well i have a simple game scoring system. You have a Match, a Match consists of 5 sets. All thats simple enough.

    I have created a Match class where i store all the match details i.e Name of comp, date, time of match etc.

    I have created a Team class where all the team for that match is stored.

    I have created a Set class where all the general game rules/set information sits.

    Now a couple of questions, im not really sure how i connect all these classes (which hold information for a single Match) together to make it into one Match instance.

    I intend on giving each match an ID so that i can save all the information as one.

    Finally, do i need some kind of controller class to create a seperate Match instance? As the user will want to score many different games i need to create many Matches, one after another.

    Just a little confused at the minute as to how to do that.

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Uhm, a loop?

  3. #3
    dinosoep is offline Senior Member
    Join Date
    Nov 2009
    Rep Power


    a Super class which creates, if the user wants to, a match class.
    match newmatch=null;
    private void newmatchClicked(...){
    newmatch=new match();

Similar Threads

  1. String match to the linkedlist element
    By jboy in forum New To Java
    Replies: 3
    Last Post: 09-06-2009, 08:02 AM
  2. Need help getting java drawing match to image.
    By kiduut in forum New To Java
    Replies: 9
    Last Post: 12-28-2008, 02:55 PM
  3. Java Developer - Need Job - This is Perfect match
    By ravisrivastava2003 in forum Java Software
    Replies: 0
    Last Post: 12-10-2008, 08:35 PM
  4. Get all groups from a regular expression match?
    By johann_p in forum New To Java
    Replies: 0
    Last Post: 05-16-2008, 08:50 PM
  5. Object Reflection: Creating new instances
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 09:13 PM

Posting Permissions

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