}
}
if (hasEncryption) {
CryptoPanel cp = new CryptoPanel();
cryptoStatusDisplay = cp;
layout.putConstraint(SpringLayout.WEST, cp, BORDER, SpringLayout.EAST, headerScrollPane);
layout.putConstraint(SpringLayout.NORTH, cp, BORDER, SpringLayout.NORTH, ReadMessageDisplayPanel.this);
layout.getConstraints(headerScrollPane).setWidth(Spring.sum(layout.getConstraints(editorScrollPane).getWidth(), Spring.minus(Spring.sum(Spring.constant(BORDER), layout.getConstraints(cp).getWidth()))));
MessageCryptoInfo cryptoInfo = getMessageProxy().getMessageInfo().getCryptoInfo();
if (cryptoInfo != null)
cp.cryptoUpdated(cryptoInfo);
ReadMessageDisplayPanel.this.add(cp);
}
layout.layoutContainer(ReadMessageDisplayPanel.this);
ReadMessageDisplayPanel.this.repaint();