public void schemeEditorAddCircuit() {
        if(ce_circuit.getText().length() == 0 || ce_source.getSelectionIndex() == -1) return;
        String circuitName = ce_circuit.getText();
        ce_circuit.add(circuitName);
        ce_circuit2.add(circuitName);
        
        Contact contact = new Contact(ce_source.getText());
        if(scheme.getCircuits().containsKey(circuitName)) {
            Circuit circuit = scheme.getCircuits().get(circuitName);
            circuit.getContacts().set(0, contact);
            scheme.getCircuits().put(circuitName, circuit);
        } else {
            Circuit circuit = new Circuit();
            circuit.getContacts().add(contact);
            scheme.getCircuits().put(circuitName, circuit);
        }
        schemeEditorSchemeChanged();
    }