private void addInput(String type) {
        StyledDocument doc = jTextPane_Source.getStyledDocument();
        int pos = jTextPane_Source.getCaretPosition();
        try {
            doc.insertString(pos, "<input type=\"" + type + "\" >", null);
        } catch (BadLocationException ex) {
            Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);
        }

    }