private void createSR(String in1, String in2, String out)
	{
		SRFlipFlop sr = new SRFlipFlop();

		// Connect the first input
		// Check if the in wire is an input
		if (stringToInput.containsKey(in1))
		{
			Wire inWire = new Wire();
			stringToInput.get(in1).connectOutput(inWire);
			sr.connectInput(inWire);
		}
		// Check if the in wire is an output
		else if (stringToOutput.containsKey(in1))
		{
			Wire inWire = new Wire();
			stringToOutput.get(in1).connectOutput(inWire);
			sr.connectInput(inWire);
		}
		// Check if the in wire is just a wire already known to the circuit
		else if (stringToWire.containsKey(in1))
			sr.connectInput(stringToWire.get(in1));
		else
			MainFrame.showError("Error, the wire " + in1
					+ " isn't in the circuit");

		// Connect the Second input
		// Check if the in2 wire is an input
		if (stringToInput.containsKey(in2))
		{
			Wire inWire = new Wire();
			stringToInput.get(in2).connectOutput(inWire);
			sr.connectInput(inWire);
		}
		// Check if the in wire is an output
		else if (stringToOutput.containsKey(in2))
		{
			Wire inWire = new Wire();
			stringToOutput.get(in2).connectOutput(inWire);
			sr.connectInput(inWire);
		}
		// Check if the in wire is just a wire already known to the circuit
		else if (stringToWire.containsKey(in2))
			sr.connectInput(stringToWire.get(in2));
		else
			MainFrame.showError("Error, the wire " + in2
					+ " isn't in the circuit");

		// Connect the output
		// Check if the in wire is an output
		if (stringToOutput.containsKey(out))
		{
			Wire outWire = new Wire();
			stringToOutput.get(out).connectInput(outWire);
			sr.connectOutput(outWire);
		}
		// Check if the in wire is just a wire already known to the circuit
		else if (stringToWire.containsKey(out))
			sr.connectOutput(stringToWire.get(out));
		else
			MainFrame.showError("Error, the wire " + out
					+ " isn't in the circuit");

		flipflops.add(sr);
	}