debug: show active tab on Smack debugger startup

Enhanced Debugger Window showed Smack Info tab, now shows active
connection. Fixes SMACK-367.
This commit is contained in:
Jesus 2020-04-11 12:17:42 -05:00 committed by Florian Schmaus
parent 5c5dfedce2
commit c07f41c119
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ public final class EnhancedDebuggerWindow {
debugger.tabbedPane.setName("XMPPConnection_" + tabbedPane.getComponentCount());
tabbedPane.add(debugger.tabbedPane, tabbedPane.getComponentCount() - 1);
tabbedPane.setIconAt(tabbedPane.indexOfComponent(debugger.tabbedPane), connectionCreatedIcon);
tabbedPane.setSelectedIndex(tabbedPane.indexOfComponent(debugger.tabbedPane));
frame.setTitle(
"Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1));
// Keep the added debugger for later access