This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Resolution of the Monitor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resolution of the Monitor" Watch "Resolution of the Monitor" New topic
Author

Resolution of the Monitor

Pratik Khetia
Ranch Hand

Joined: Jun 29, 2001
Posts: 50
Hi All,
I need to know how do I find the resolution of the end-user's monitor. Is there any system properties for that ??

thanks in advance
Pratik
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Pratik,
Try this (java.awt.Toolkit):
Dimension scSize = Toolkit.getDefaultToolkit().getScreenSize();
Regards,
Manfred.
 
Don't get me started about those stupid light bulbs.
 
subject: Resolution of the Monitor
 
Similar Threads
Monitor Size
How to read the Monitor Resolution?
Control the monitor resolution.
Images in Debian
Database location and properties file doubts.