public void setupWindow(JComponent component)
	{
		frame = new JFrame();
		frame.add(component);

		//frame.setUndecorated(slateSettings.getUndecorated());
		frame.setUndecorated(true);
		frame.setResizable(false);
		
		// Shift to external display
		//if (slateSettings.getExternalDisplay())
		//{
			//Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
			//frame.setLocation(screenSize.width, 0);
		
			GraphicsConfiguration gc = device.getDefaultConfiguration();
			frame.setLocation((int) gc.getBounds().getX(), (int) gc.getBounds().getY());
			//System.out.println("(" + gc.getBounds().getX() + ", " + gc.getBounds().getY() + ", " 
			// + gc.getBounds().getWidth() + ", " + gc.getBounds().getHeight() + ")");
		//}
		
		frame.addWindowListener( new WindowAdapter()
		{
			public void windowClosing(WindowEvent evt)
			{
				//reacTIVisionProcess.destroy();
				System.exit(0);
			}
		});
		
		frame.addKeyListener( new KeyAdapter() { public void keyPressed(KeyEvent evt)
		{
			if (evt.getKeyCode() == KeyEvent.VK_ESCAPE)
			{
				System.exit(0);
			}
			else if (evt.getKeyCode() == KeyEvent.VK_H)
			{
				slateSettings.setHelpParadigm(slateSettings.getHelpParadigm().next());
				DataManager.saveSlateSettings(slateSettings);
			}
			else if (evt.getKeyCode() == KeyEvent.VK_L)
			{
				slateComponent.toggleEventLogger();
			}
			else if (evt.getKeyCode() == KeyEvent.VK_V)
			{
				Logger.toggleVerbose();
			}
			else if (evt.getKeyCode() == KeyEvent.VK_R)
			{
				slateComponent.reset();
				//calibrationComponent.reset();
			}
			else if (evt.getKeyCode() == KeyEvent.VK_T)
			{
				changeMode(Mode.Toolkit_Calibration);
			}
			else if (evt.getKeyCode() == KeyEvent.VK_C)
			{
				changeMode(Mode.System_Calibration);
			}
			// TODO SELECT TOOLKIT OPTION
			// TODO launch select toolkit dialog
			// TODO should be TUIO-based, but we'll do it the simple way for now
			//String toolkitName = slateSettings.getToolkit();
			//destroyWindow();
			//slateSettings.setToolkit(toolkitName);
			//startSlateSession();
		} });
	}