/**
* The driver for JMUlti -- a multiple window text editor
*
* @author Nancy Harris
* @version 1.0
*/
public class JMUltiQ
{
   /** 
    * The entry point for JMUlti
    *     
    * @param args The command-line arguments>    
    */   
   public static void main(String[] args)
   {
		TextEditor editor;
		TextWindow [] window;
		final int WINDOW_NUMBER = 3;
		String text;
				
		window = new TextWindow[WINDOW_NUMBER];
		
		for (int ii = 0; ii < window.length; ii++)
		{
			text = "JMUlti -- Window " + (ii + 1);	
			// create a new TextEditor object	
			editor = new TextEditor();
			editor.setShouldHaveScrollBar(true);
			editor.setEditable(true);
			editor.setText(text);
			editor.selectAll();
		
			// instantiate one window
			window[ii] = new TextWindow(text);
			
			window[ii].setTextEditor(editor);
			window[ii].setShouldConfirmExit(true);
			window[ii].addFileMenu();
			window[ii].open();
			window[ii].setVisible(true);
		}
	}
}