WorkIndicatorDialog(owner: Window, label: String)
Public domain. Use as you like. No warranties. P = Input parameter type. Given to the closure as parameter. Return type is always Integer. (cc) @imifos