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.

cusax-fix
Yana Stamcheva 19 years ago
parent 34db0c230e
commit 211da8331b

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

Loading…
Cancel
Save