|
|
|
|
@ -195,7 +195,7 @@ private void addChatTab(ChatPanel chatPanel)
|
|
|
|
|
PresenceStatus status = chatPanel.getChatStatus();
|
|
|
|
|
|
|
|
|
|
if (getCurrentChatPanel() == null)
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
this.getContentPane().add(chatPanel, BorderLayout.CENTER);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
@ -259,10 +259,8 @@ public void removeChat(ChatPanel chatPanel)
|
|
|
|
|
if(getChatTabCount() == 0)
|
|
|
|
|
{
|
|
|
|
|
this.getContentPane().remove(chatPanel);
|
|
|
|
|
this.getContentPane().validate();
|
|
|
|
|
this.getContentPane().repaint();
|
|
|
|
|
|
|
|
|
|
this.setVisible(false);
|
|
|
|
|
this.dispose();
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -324,7 +322,7 @@ public void removeAllChats()
|
|
|
|
|
{
|
|
|
|
|
this.chatTabbedPane.removeAll();
|
|
|
|
|
|
|
|
|
|
this.getContentPane().remove(chatTabbedPane);
|
|
|
|
|
this.getContentPane().remove(chatTabbedPane);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|