public static void main(String[] args)
    {
    	YesNoWindow y1 = new YesNoWindow();
    	y1.addMessage("Yes or No?","This is a test");
    	while (y1.visible)
    	{
    		try
    		{
    			Thread.sleep(15);
    		}
    		catch(Exception ignored)
    		{

    		}
    	}
    	System.out.println(y1.getYes());

    }