Hi I\'m writing a graphics program and I\'ve been searching for a way to get the physical size of the screen being used. I can get the size of the screen in pixels and also
Use the getScreenResolution() method of Toolkit class which does returns the screen resolution in dots-per-inch. (ref javadocs)
getScreenResolution()
Toolkit