I will start a project where I will control queues in java, even normal queues, as if you arrived at the bank and saw the name on the screen.
I'll give you a summary of the project to be clearer.
I have 10 computers, each one belongs to one person, these people request something simultaneously. In another jframe will display who requested first, will display the name of the person and the time that requested it, once it is answered the name is removed from the queue, for example:
Solicitante | Tempo que fez a solicitação
João | 2:45
Roberto | 1:58
Olivia | 0:50
Pedro | 0:15
However, I need to display this in real time, that is, it will present the requested time in real time and also as soon as someone gets in the queue or exit it will also happen in real time
I need a way to refresh the jframe that will perform this display automatically, either every 2 seconds, or 3 ... anyway
I have a need to do this in JAVA
Does anyone know of any method that I can program this refresh or some way to do it automatically?