AlertDialog.setDefaultButton

void setDefaultButton(int button)

Sets the index of the default button.

See propertyGtk.AlertDialog:default-button for details of how this value is used.

Parameters

buttonthe new default button