In java, message dialogs open in middle of the Frame window by default in java. I want open the message dialog in specified location. Is it possible.?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes is it possible using the setLocation method:
But you must set the location before set the visible. Swing components can’t dynamically re-generated after visibility. Just set the location before set visible to true.