Using java swing, I want to print with accurate physical dimensions irrespective to user's printer and its resolution
e.g: i want to print exactly 5cm x 3cm rectangle on paper.
I don't know how to find the current dpi for selected printer (consider even select printer might have multiple configuration for dpi which user might change from print dialog box while printing).