Extended JDialog
Features:
Automatically disposes dialog if close-button pressed, although
this behavior can be changed by over-riding close()
Closes dialog if ESC pressed (calls close())
Internationalized button text, by default
Button constants
Help support
To add a default button, use JRootPane.setDefaultButton(); note that if a
text panel/field is present then this will not work.