private void generateDisplay() {
		switch(mode) {
			case INTRODUCTION:
				
				mContainer.add(new Introduction().getComponent(), BorderLayout.CENTER);
				break;
			case PIXELS:
				variableDisplay = new Pixels();
				
				mContainer.add(variableDisplay.getContainer(), BorderLayout.CENTER);
				((Pixels)variableDisplay).init();
				break;
			case COLORS:
				variableDisplay =new Colors(); 
				mContainer.add(variableDisplay.getContainer(), BorderLayout.CENTER);
				break;
			case DATA_IN_IMAGES:
				variableDisplay = new DataInImages();
				mContainer.add(variableDisplay.getContainer(), BorderLayout.CENTER);
				break;
			case FALSE_COLOR:
				variableDisplay = new FalseColor();
				mContainer.add(variableDisplay.getContainer(), BorderLayout.CENTER);
				break;
			case CHECK_COLOR:
				mContainer.add(new ColorChecker().getContainer(), BorderLayout.CENTER);
				break;
			case ABOUT:
				mContainer.add(new About().getContainer(), BorderLayout.CENTER);
				break;
		}
		mainDisplay.repaint();
		mainDisplay.getContentPane().validate();
	}