public static void main(String[] args) {
        QueueSimulation queueSimulation = new QueueSimulation();
        SimulationFrame frame = new SimulationFrame();
        String s = "               ";
        
        
        //simulare pentru 180 de secunde
       for(int j = 0; j < simulationInterval; j++){
            frame.AppTime.setText(j+"");
            if(frame.simulationPaused) {
                j--;
                continue;
            }
            else{
            for(long i = 0; i < 300000000; i++);
           
            queueSimulation.setSimulationTime(j);
            queueSimulation.addInitialQueue();
            queueSimulation.seeIfAnyClientLeaves();
            if(j >= queueSimulation.lastClientArrivingTime) queueSimulation.addClientsToQueues();
            queueSimulation.seeIfQueueIsEmpty();
            queueSimulation.addQueueIfTooMuchClients();
            
            
            for(Queue q : queueSimulation.queueList){
                if(queueSimulation.queueList.indexOf(q) == 0)
                    frame.labelQueue1.setText("Queue1:  "+s+q.getClientsNumber()+s+"  "+s+q.getAverageWaitingTime()+s+"  "+s+q.getAverageServiceTime()+s+"  "+s+q.getEmptyQueueTime());
                else if(queueSimulation.queueList.indexOf(q) == 1)
                    frame.labelQueue2.setText("Queue2:  "+s+q.getClientsNumber()+s+"  "+s+q.getAverageWaitingTime()+s+"  "+s+q.getAverageServiceTime()+s+"  "+s+q.getEmptyQueueTime());
                else if(queueSimulation.queueList.indexOf(q) == 2)
                    frame.labelQueue3.setText("Queue3:  "+s+q.getClientsNumber()+s+"  "+s+q.getAverageWaitingTime()+s+"  "+s+q.getAverageServiceTime()+s+"  "+s+q.getEmptyQueueTime());
            }
    
            }
       }
    }