This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Determining monitor window is on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Determining monitor window is on" Watch "Determining monitor window is on" New topic

Determining monitor window is on

Dan Greer

Joined: Jan 08, 2010
Posts: 11
Hello, I have implemented a full screen mode for my application. However, many of the users have dual monitors and don't necessarily want the window be be full screen on their default monitor. Is there any easy way to determine which monitor a window is open on so that it can go into full screen on that specific device? I have searched and found similar solutions but they all seem very complicated for what I am trying to accomplish.

Thank you
Rob Spoor

Joined: Oct 27, 2005
Posts: 19684

Check out java.awt.GraphicsEnvironment, then java.awt.GraphicsDevice.

How To Ask Questions How To Answer Questions
It is sorta covered in the JavaRanch Style Guide.
subject: Determining monitor window is on