I have a dialog class that extends EscapeDialog in Java. How can I get the location on the screen that is was closed, and have it show at that same location when the user opens the dialog again?
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.
You can listen for the windowClosing event and save the dialog location somewhere: in memory, on disk,…
Then, the next time you open the dialog, read the location from the place you saved it to and call the
dialog.setLocation()before you display it.