User interaction methods

 

The queryUser method

boolean queryUser (in String title, in String label)

This method is used to ask the user a question, in order to carry out conditional processing.

 

For example:

 

if (queryUser ("Confirmation", "Do you really want to delete the files?")) {

    // File deletion

    ...

} else '

    // No file deletion

    ...

}

 

 

The infoUser method

infoUser (in String title, in String label)

This method is used to display an information dialog box.

 

For example:

 

infoUser ("Information", "Generation complete." + NL + "No errors during generation.")