notifies that the work is done ; that is , either the main task is completed or the user canceled it . this method may be called more than once implementations should be prepared to handle this case . concode_field_sep int lastWorkUI concode_elem_sep JPanel progressPanel concode_elem_sep JProgressBar progressBar concode_elem_sep int totalWorkUI concode_elem_sep boolean cancelRequested concode_elem_sep double currentWork concode_elem_sep double totalWork concode_elem_sep int currentWorkUI concode_elem_sep JLabel messageLabel concode_field_sep void setCanceled concode_elem_sep void worked concode_elem_sep void beginTask concode_elem_sep boolean isCanceled concode_elem_sep void internalWorked concode_elem_sep void runInUI concode_elem_sep void setDescription concode_elem_sep void setSubTaskName concode_elem_sep void setTaskName concode_elem_sep void setVisibility
void function ( ) { runInUI ( new Runnable ( ) { public void run ( ) { if ( progressBar != null ) { progressBar . setValue ( progressBar . getMaximum ( ) ) ; setVisibility ( false ) ; } } } ) ; ProgressMonitorList . instance ( ) . remove ( this ) ; }