chatPanel.loadHistory(message.getMessageUID());
chatPanel.processMessage(protocolContact.getDisplayName(),
date, Constants.INCOMING_MESSAGE, message.getContent());
if (Constants.AUTO_POPUP_NEW_MESSAGE) {
tabbedChatWindow.addChatTab(chatPanel);
<BUG>if(tabbedChatWindow.isVisible())

tabbedChatWindow.toFront();
else</BUG>
tabbedChatWindow.setVisible(true);

chatPanel.loadHistory(message.getMessageUID());
chatPanel.processMessage(protocolContact.getDisplayName(),
date, Constants.INCOMING_MESSAGE, message.getContent());
if (Constants.AUTO_POPUP_NEW_MESSAGE) {
msgWindow.addChat(chatPanel);
msgWindow.pack();
msgWindow.setVisible(true);
