From 211da8331bb0eee19f4e1377393cf3d5dafbd2f8 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Tue, 6 Mar 2007 14:13:13 +0000 Subject: [PATCH] When first two tabs are added to the chat tabbed pane, the focus goes automatically to the second one. We now tell the tabbed pane that he should select the first one. --- .../sip/communicator/impl/gui/main/message/ChatWindow.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java b/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java index eea8ee4f5..4cd3deaf7 100755 --- a/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java +++ b/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java @@ -233,7 +233,11 @@ private void addChatTab(ChatPanel chatPanel) chatTabbedPane.addTab(contactName, new ImageIcon(Constants .getStatusIcon(status)), chatPanel); - + + //when added to the tabbed pane, the first chat panel should rest + //the selected component + chatTabbedPane.setSelectedComponent(firstChatPanel); + // Workaround for the following problem: // The scrollbar in the conversation area moves up when the // scrollpane is resized. This happens when ChatWindow is in