java - Screen display size -
hi i'm writing graphics program , i've been searching way physical size of screen being used. can size of screen in pixels , logical resolution. can't seem find anywhere physical dimensions in specs monitor (eg 19"- 376 x 301 mm). question, information stored anywhere in os when loads driver particular screen being used? program i'm writing needs work on mac , windows.
thanks!
nt
i don't think it's possible java. can try write jni code if feature absolutely essential in program. otherwise, ask user monitor size.
edit looks swt can give dpi, , can calculate monitor size it: http://www.java2s.com/code/javaapi/org.eclipse.swt.graphics/devicegetdpi.htm
but, you'd have use swt :) not bad choice if want develop good-looking programs mac.
Comments
Post a Comment