File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android 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.
 
jQuery in Action, 3rd edition
 
subject: Resolution of the Monitor
 
It's not a secret anymore!