private void addSingleCommand(JPanel pane, String type) {
        jPanel_Control.removeAll();
        jPanel_Control.add(pane);
        jPanel_Control.repaint();
        jPanel_Control.revalidate();

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