How to get screen size in Java?
Not screen resolution, screen/monitor size in inch and aspect ratio. Application developed has to display some kind of test that has to be the same size regardless to screen size and aspect ratio. Lets say we want to display a rectangle that is 2 cm wide and 2 cm high and we want it to be the same size for every possible type of display adapter.