protected void closeDialogOk(){
  wta.setK(Integer.parseInt(kValue.getText()));
  super.closeDialogOk();
}

protected void closeDialogOk ( ) { wta . setK ( Integer . parseInt ( kValue . getText ( ) ) ) ; super . closeDialogOk ( ) ; }
called when dialog closes .
