A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Resolution of the Monitor
Joined: Jun 29, 2001
Oct 26, 2001 10:31:00
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
Joined: Jan 09, 2001
Oct 26, 2001 11:13:00
Try this (java.awt.Toolkit):
Dimension scSize = Toolkit.getDefaultToolkit().getScreenSize();
It is sorta covered in the
JavaRanch Style Guide
subject: Resolution of the Monitor
Control the monitor resolution.
How to read the Monitor Resolution?
Database location and properties file doubts.
Images in Debian
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014