I have a java application that works just in console (windows command prompt for example). I would like to occasionally bring the window to the front screen. Is there something that I can add to my code to do this.
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.
If you are using awt or swing, then both
WindowandJFramehavetoFront()method to bring the window to the front. If you are using console, I don’t think that’s possible.