client/ClientWindow.java
/**
	 * Start the background timer to update on a regular interval
	 */
Start the background timer to update on a regular interval
Start the background timer to update on a regular interval
public void startTimer() {
		ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
		int timeInterval = 1;
		scheduler.scheduleAtFixedRate(() -> refreshOrders(), 0, timeInterval, TimeUnit.SECONDS);
	}
public void startTimer ( ) { ScheduledExecutorService scheduler = Executors . newScheduledThreadPool ( 1 ) ; int timeInterval = 1 ; scheduler . scheduleAtFixedRate ( ( ) -> refreshOrders ( ) , 0 , timeInterval , TimeUnit . SECONDS ) ; }
Start the background timer to update on a regular interval
Start the background timer to update on a regular interval
//Refresh the status of orders every 5 seconds