private void showMessageDialogQuestion() { String title = "Question"; String mesg = "Do you like the RAP technology?\n\n" + "Note that you can also press <Return> here. " + "The correct answer is automatically selected."; boolean result = MessageDialog.openQuestion(getShell(), title, mesg); messageDlgResLabel.setText("Result: " + result); messageDlgResLabel.pack(); }