This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
 
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.