Not really a bug, but it should take 5sec to fix this:
The method in Dialog.java is called setPrefefinedButtons.