Adding button to A Dialog

I want a button on a dialog. And if i click the button, it should open an info log.

Create a menu item pointing to a class that implements the required logic (infolog in your case). Add the menu item to the dialog by Dialog.addMenuItemButton().