Results 1 to 2 of 2
  1. #1
    JaEdmuva is offline Member
    Join Date
    Jan 2011
    Rep Power

    Post Help with a Bank graphic simulation

    Hi everyone. I don't speek too much english, so I hope you understand me. I need help with this program. Basically it shows a bank environment with 3 counters? and a line. The thing is that I have to represent how people in the line go to the counters and after a random time they leave. the line is supposed to be the representation of a queue and each counter will be a thread. these threads are synchronized so only one of them can take one element from the queue (line) at a time. At the start the queue is empty and i have a button that each time i press it an element is pushed into the queue and in that moment if there's a counter available, it takes that element.
    Well my problem is in the representation. I can show the environment of the bank but i dont know how to make people (just circles) to appear and go to their counters respectively and every time i press the button add a person (circle) at the tail of the line.
    So basically, i dont know how to draw a new circle in the jpane at the tail of the line and, when his moment comes, to make it move to a specific location in the jpane (to a counter). Could anyone help me with this.. please, need it with urgency!!!!:D

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. Bank Account
    By HPcompaq256 in forum New To Java
    Replies: 11
    Last Post: 02-26-2010, 10:05 PM
  2. Java Question Bank
    By mgm2010 in forum New To Java
    Replies: 2
    Last Post: 07-31-2009, 06:45 PM
  3. calculating Bank interest rate.
    By dotnet007 in forum New To Java
    Replies: 10
    Last Post: 05-13-2008, 09:30 AM
  4. Code bank
    By Eranga in forum Suggestions & Feedback
    Replies: 2
    Last Post: 01-01-2008, 06:23 AM
  5. Help MEEEEEEE! bank project
    By subwoofer717 in forum Advanced Java
    Replies: 1
    Last Post: 12-25-2007, 10:08 AM

Posting Permissions

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