fix chat window refresh

cusax-fix
Yana Stamcheva 19 years ago
parent c2d09bdf4d
commit cffee3bb08

@ -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
{

@ -210,7 +210,7 @@ public void closeWindow()
if (answer == JOptionPane.OK_OPTION)
{
chatWindow.removeAllChats();
chatWindow.setVisible(false);
chatWindow.dispose();
synchronized (chats)
{
@ -231,7 +231,7 @@ else if (System.currentTimeMillis() - chatWindow
if (answer == JOptionPane.OK_OPTION)
{
chatWindow.removeAllChats();
chatWindow.setVisible(false);
chatWindow.dispose();
synchronized (chats)
{
@ -242,7 +242,7 @@ else if (System.currentTimeMillis() - chatWindow
else
{
chatWindow.removeAllChats();
chatWindow.setVisible(false);
chatWindow.dispose();
synchronized (chats)
{

Loading…
Cancel
Save