By default, my Swing program starts at the top left hand side of the monitor. Is there a way to make it so it pops up at the right hand side?
What about dual monitors? Can I get it to pop on the right monitor?
Thanks.
Carlo
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.
Assuming you don’t want to cover up the taskbar, you should use getMaximumWindowBounds.
Java API
http://www.javabeginner.com/java-swing/java-jframe-class-example
Your pseudo code for the top right corner looks something like this: