I am following the basic tutorials, and I find myself okay with them.

I am trying to add a MessageDialog when a user clicks on a button.

However, I have no idea how to use one despite using the API reference on it.

If possible, can someone tell me a simple way of implementing it, and how to use the API correctly.