@Override
    public void init(Integer msgId) {
        clearAllField();
        TMsg tMsg = msgMapper.selectByPrimaryKey(msgId);
        if (tMsg != null) {
            TMsgMail tMsgMail = JSONUtil.toBean(tMsg.getContent(), TMsgMail.class);
            getInstance().getMailTitleTextField().setText(tMsgMail.getTitle());
            getInstance().getMailCcTextField().setText(tMsgMail.getCc());
            getInstance().getMailFilesTextArea().setText(tMsgMail.getFiles());
            getInstance().getMailContentPane().setText(tMsgMail.getContent());

            MessageEditForm messageEditForm = MessageEditForm.getInstance();
            messageEditForm.getMsgNameField().setText(tMsg.getMsgName());
            messageEditForm.getPreviewUserField().setText(tMsg.getPreviewUser());
        }
    }
<pre>
MailMsgForm
</pre>

@author <a href="https://github.com/rememberber">RememBerBer</a>
@since 2019/6/23.
src/main/java/com/fangxuele/tool/push/ui/form/msg/MailMsgForm.java