public ChoiceDialog (T defaultChoice, T… choices)

Creates a new ChoiceDialog instance with the first argument specifying the default choice that should be shown to the user, and all following arguments considered a varargs array of all available choices for the user. It is expected that the defaultChoice be one of the elements in the choices varargs array. If this is not true, then defaultChoice will be set to null and the dialog will show with the initial choice set to the first item in the list of choices.

defaultChoice    The item to display as the pre-selected choice in the dialog. This item must be contained within the choices varargs array.
choices    All possible choices to present to the user.