/**
 * A driver for testing the FormattedDocument class
 */
public class Driver2
{
    /**
     * The entry point of the application
     *
     * @param args   The command line arguments
     */
    public static void main(String[] args)
    {
	FormattedDocument        formatted;
	String                   text;


	text = "George is a little monkey, "+
               "and all monkeys are curious.\n"+
               "But no monkey is as curious "+
               "as George.";

   //uses these delimiters: " ,.;:!?\t\n\r"
	//actually only uses blank spaces as delimiters
	formatted = new FormattedDocument(text, 20);

	System.out.println(" returned from constructing formatted ");
	System.out.println(formatted.getDescription());
	
	System.out.println(" returned from getDescription ");
	System.out.println(formatted.getText());
	

    }
}
