private void importComponent(String type) {
		if (type.equalsIgnoreCase("Activity Button")) {
			ActivityButton ab = ActivityButton.create(this);
			if (ab != null)
				insertComponent(ab);
		} else if (type.equalsIgnoreCase("Audio Player")) {
			AudioPlayer ap = AudioPlayer.create(this);
			if (ap != null)
				insertComponent(ap);
		} else if (type.equalsIgnoreCase("Applet")) {
			PageApplet applet = PageApplet.create(this);
			if (applet != null) {
				insertComponent(applet);
				// applet.setIndex(applet.getIndex() + 1); //Why did I add this silly code?
			}
		} else if (type.equalsIgnoreCase("Plugin")) {
			PageJContainer plugin = PageJContainer.create(this);
			if (plugin != null)
				insertComponent(plugin);
		} else if (type.equalsIgnoreCase("Feedback Area")) {
			PageFeedbackArea fa = PageFeedbackArea.create(this);
			if (fa != null)
				insertComponent(fa);
		} else if (type.equalsIgnoreCase("Button")) {
			PageButton pb = PageButton.create(this);
			if (pb != null)
				insertComponent(pb);
		} else if (type.equalsIgnoreCase("Spinner")) {
			PageSpinner s = PageSpinner.create(this);
			if (s != null)
				insertComponent(s);
		} else if (type.equalsIgnoreCase("Check Box")) {
			PageCheckBox cb = PageCheckBox.create(this);
			if (cb != null)
				insertComponent(cb);
		} else if (type.equalsIgnoreCase("A Group of Radio Buttons")) {
			deselect();
			EventQueue.invokeLater(new Runnable() {
				public void run() {
					int i = JOptionPane.showOptionDialog(JOptionPane.getFrameForComponent(Page.this), "How many radio buttons would you like to create for this group?", "Number of Radio Buttons", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, RADIO_BUTTON_OPTIONS, RADIO_BUTTON_OPTIONS[2]);
					if (i == JOptionPane.CLOSED_OPTION || i == RADIO_BUTTON_OPTIONS.length - 1)
						return;
					long t = System.currentTimeMillis();
					ButtonGroup bg = new ButtonGroup();
					PageRadioButton rb;
					i += 2;
					for (int k = 0; k < i; k++) {
						rb = PageRadioButton.create("Button " + (k + 1), Page.this);
						rb.setGroupID(t);
						rb.putClientProperty("button group", bg);
						bg.add(rb);
						insertComponent(rb);
					}
				}
			});
		} else if (type.equalsIgnoreCase("Slider")) {
			PageSlider s = PageSlider.create(this);
			if (s != null)
				insertComponent(s);
		} else if (type.equalsIgnoreCase("Combo Box")) {
			PageComboBox cb = PageComboBox.create(this);
			if (cb != null)
				insertComponent(cb);
		} else if (type.equalsIgnoreCase("User Input Text Field")) {
			PageTextField tf = PageTextField.create(this);
			if (tf != null)
				insertComponent(tf);
		} else if (type.equalsIgnoreCase("User Input Text Area")) {
			PageTextArea ta = PageTextArea.create(this);
			if (ta != null)
				insertComponent(ta);
		} else if (type.equalsIgnoreCase("Database Search Text Field")) {
			SearchTextField stf = SearchTextField.create(this);
			if (stf != null)
				insertComponent(stf);
		} else if (type.equalsIgnoreCase("Table")) {
			PageTable table = PageTable.create(this);
			if (table != null)
				insertComponent(table);
		} else if (type.equalsIgnoreCase("Text Box")) {
			PageTextBox tb = PageTextBox.create(this);
			if (tb != null)
				insertComponent(tb);
		} else if (type.equalsIgnoreCase("Multiple Choice")) {
			PageMultipleChoice choice = PageMultipleChoice.create(this);
			if (choice != null)
				insertComponent(choice);
		} else if (type.equalsIgnoreCase("Image Question")) {
			ImageQuestion iq = ImageQuestion.create(this);
			if (iq != null)
				insertComponent(iq);
		} else if (type.equalsIgnoreCase("Numeric Box")) {
			PageNumericBox box = PageNumericBox.create(this);
			if (box != null)
				insertComponent(box);
		} else if (type.equalsIgnoreCase("Bar Graph")) {
			PageBarGraph bar = PageBarGraph.create(this);
			if (bar != null)
				insertComponent(bar);
		} else if (type.equalsIgnoreCase("Gauge")) {
			PageGauge gauge = PageGauge.create(this);
			if (gauge != null)
				insertComponent(gauge);
		} else if (type.equalsIgnoreCase("X-Y Graph")) {
			PageXYGraph curve = PageXYGraph.create(this);
			if (curve != null)
				insertComponent(curve);
		} else if (type.equalsIgnoreCase("Bond-Breaking Barrier")) {
			PagePotentialWell well = PagePotentialWell.create(this);
			if (well != null)
				insertComponent(well);
		} else if (type.equalsIgnoreCase("Activation Barrier")) {
			PagePotentialHill hill = PagePotentialHill.create(this);
			if (hill != null)
				insertComponent(hill);
		} else if (type.equalsIgnoreCase("DNA Scroller")) {
			PageDNAScroller scroller = PageDNAScroller.create(this);
			if (scroller != null)
				insertComponent(scroller);
		} else if (type.equalsIgnoreCase("Electronic Structure")) {
			PageElectronicStructureViewer es = PageElectronicStructureViewer.create(this);
			if (es != null)
				insertComponent(es);
		} else if (type.equalsIgnoreCase("Diffraction Device")) {
			PageDiffractionInstrument di = PageDiffractionInstrument.create(this);
			if (di != null)
				insertComponent(di);
		} else if (type.equalsIgnoreCase("Emission and Absorption Spectrometer")) {
			PagePhotonSpectrometer ps = PagePhotonSpectrometer.create(this);
			if (ps != null)
				insertComponent(ps);
		} else if (type.equalsIgnoreCase(INSERT_JMOL)) {
			PageMolecularViewer mv = PageMolecularViewer.create(this);
			if (mv != null) {
				insertComponent(mv);
				mv.setIndex(mv.getIndex() + 1);
			}
		} else if (type.equalsIgnoreCase("Script Console")) {
			PageScriptConsole sc = PageScriptConsole.create(this);
			if (sc != null)
				insertComponent(sc);
		} else if (type.equalsIgnoreCase(INSERT_MW3D)) {
			PageMd3d md = PageMd3d.create(this);
			if (md != null) {
				insertComponent(md);
				md.setIndex(md.getIndex() + 1);
			}
		} else if (type.equalsIgnoreCase("Periodic Table")) {
			PagePeriodicTable pt = PagePeriodicTable.create(this);
			if (pt != null)
				insertComponent(pt);
		} else if (type.equalsIgnoreCase("Function Graph")) {
			PageFunctionGraph g = PageFunctionGraph.create(this);
			if (g != null)
				insertComponent(g);
		}
	}