public boolean showDialog(){
  setVisible(true);
  return continueQueue;
}

public boolean showDialog ( ) { setVisible ( true ) ; return continueQueue ; }
shows the dialog and returns whether the work on the queue should be continued .
