Displaying a Message Box : MessageBox « SWT « Java Tutorial






A message box contains four customizable pieces of information:

  1. The text in the title bar
  2. The text message displayed within the dialog
  3. The icon displayed within the dialog
  4. The buttons displayed within the dialog








17.40.MessageBox
17.40.1.Displaying Messages
17.40.2.Displaying a Message Box
17.40.3.The Icon Styles for MessageBox
17.40.4.The Button Styles for MessageBox
17.40.5.A message box with the question icon, Yes/No button, and a simple questionA message box with the question icon, Yes/No button, and a simple question
17.40.6.MessageBox with Error IconMessageBox with Error Icon
17.40.7.MessageBox with Information Icon and OK Cancel ButtonMessageBox with Information Icon and OK Cancel Button
17.40.8.MessageBox with Information IconMessageBox with Information Icon
17.40.9.MessageBox with Question Icon and Yes No ButtonMessageBox with Question Icon and Yes No Button
17.40.10.MessageBox with Warning Icon and Yes No Cancel ButtonMessageBox with Warning Icon and Yes No Cancel Button
17.40.11.MessageBox with Working Icon and Abort Retry and Ignore ButtonMessageBox with Working Icon and Abort Retry and Ignore Button