public void setActiveScan ( ActiveScan scan ) { this . scan = scan ; if ( scan == null ) { return ; } getHostSelect ( ) . removeAll ( ) ; for ( HostProcess hp : scan . getHostProcesses ( ) ) { getHostSelect ( ) . addItem ( hp . getHostAndPort ( ) ) ; } Thread thread = new Thread ( ) { @ Override public void run ( ) { while ( ! stopThread ) { SwingUtilities . invokeLater ( new Runnable ( ) { @ Override public void run ( ) { updateProgress ( ) ; } } ) ; try { sleep ( 200 ) ; } catch ( InterruptedException e ) { // Ignore } } } } ; thread . start ( ) ; }
Set the scan that will be shown in this dialog .