public TextDemo() {

		MinuetoWindow window;			// The Minueto window
		MinuetoEventQueue eventQueue;		// The Minueto queue that will hold
													// the events.
		MinuetoFont font;					// Font used to draw on the screen.
													// Images of text
		MinuetoImage imageNormalText[] = new MinuetoImage[8];			
		MinuetoImage imageAAText[] = new MinuetoImage[8];
		
		// Create a 640 by 480 window
		window = new MinuetoFrame(640, 480, true);
		// Build the event queue.
		eventQueue = new MinuetoEventQueue();
		
		// Build the images of the text
		for (int i = 0; i < 8; i++) {
			int fontSize = i * 4 + 10;
			font = new MinuetoFont("Arial",fontSize,false, false);
			imageNormalText[i] = new MinuetoText("Arial normal " + fontSize  ,font,MinuetoColor.WHITE);
			imageAAText[i] = new MinuetoText("Arial anti-aliased " + fontSize ,font,MinuetoColor.WHITE, true);
				
		}
		
		// Show the game window.
		window.setVisible(true);
				
		// Game/rendering loop
		while(true) {
		
			int n = 5;
			// Clear the window.
			window.clear(MinuetoColor.BLACK);
			
			// Draw the text on the screen.
			for (int i = 0; i < 8; i++) {
				window.draw(imageNormalText[i], 0, n);			
				window.draw(imageAAText[i], 320, n);			
				n = n + imageNormalText[i].getHeight() + 3;
			}
			
			// Handle all the events in the event queue.
			while (eventQueue.hasNext()) {
				eventQueue.handle();
			}
			
			// Render all graphics in the back buffer.
			window.render();
		}		
	}