public void schemeEditorAddElement() {
        if(ce_element.getText().length() == 0 || ce_type.getSelectionIndex() == -1) return;
        String elementName = ce_element.getText();
        String elementType = ce_type.getText();
                
        scheme.getElements().put(elementName, elementType);
        Element element = library.getLibrary().get(elementType);
        ce_element.add(elementName);
        for(int n = 0; n < element.getIcnt() + element.getOcnt() + element.getEcnt(); n++)
        {
            se_signal.add(new Contact(elementName, n).toString());
        }
        for(int n = 0; n < element.getIcnt(); n++) {
            ce_drain.add(new Contact(elementName, n).toString());
        }
        for(int n = element.getIcnt(); n < element.getIcnt() + element.getOcnt(); n++) {
            ce_source.add(new Contact(elementName, n).toString());
        }
        schemeEditorSchemeChanged();
    }