private void showNewDebugger ( EnhancedDebugger debugger ) { if ( frame == null ) { createDebug ( ) ; } debugger . tabbedPane . setName ( "XMPPConnection_" + tabbedPane . getComponentCount ( ) ) ; tabbedPane . add ( debugger . tabbedPane , tabbedPane . getComponentCount ( ) - 1 ) ; tabbedPane . setIconAt ( tabbedPane . indexOfComponent ( debugger . tabbedPane ) , connectionCreatedIcon ) ; frame . setTitle ( "Smack Debug Window -- Total connections: " + ( tabbedPane . getComponentCount ( ) - 1 ) ) ; // Keep the added debugger for later access debuggers . add ( debugger ) ; }
Shows the new debugger in the debug window .