As Page setup dialog box doesn't display any measurement, I guess you meant margins displayed by File > Page setup > Page format dialog box.
This second dialog box is managed by the system and I don't think it's possible to change its units management from a Java program, but this should be possible with system tools. Under Windows, check Measurement system and under Mac OS X, check Measurement units.