import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
   
public class Invoice {

    public static void main(String[] args) {
        InvoiceUI gui;
		while(true) {
			gui = new InvoiceUI();
			// Block until respawn == false.
			while(gui.get_respawn() == false){ 
				try { Thread.sleep(200); }
				catch(InterruptedException e){ e.printStackTrace(); }
			}
			System.out.println("Respawn.");
		}
		
    }
	
}