How to get the screen DPI in java?

The problem is no one, not even the OS, knows the exact physical dimensions of the screen. You’d need to know that in order to calculate the PPI.

There’s a display setting in the control panel where the user can manually specify the PPI and by default it’s set to 96.

Leave a Comment