The GXT toolkit also has a
MessageBox class. It is very similar in concept and functionality to the
Dialog class, except for its convenience methods for specific displays and the icons associated with these displays (which can be achieved with the
Dialog class too, but with a little hair-pulling). It's therefore safe for us to call them (both classes) Dialogs, especially considering them from a presentation perspective, but they are different.
MessageBox.alert(), passing in a title, a message to show, and an optional listener as parameters, to display an alert dialog.
MessageBox.confirm(), passing ...