Your search for the API that details the method showMessageDialog() should have led you to this page. It is not consistent with your last question, so I'm not sure what you were looking at.