Ian said:
"how to convert pixel into inch"
inches = pixels / ppi;
Maybe you really wanted to know
"how to find the display DPI setting?"
java.awt.Toolkit.getScreenResolution()
Hurray for incomplete and misleading answers!
Jean, A pixel isn't a specific size everywhere. It depends on the
medium in which your pixel is being displayed.
At 640x480 resolution on a 20inch monitor is going to have a lot fewer
pixels per inch than a 1024x768 resolution on a 15inch monitor. If you
can determine the number of pixels per inch (either ask the user
somewhere, or ask the rendering device if it knows, printers will,
graphics cards won't), then you have the answer right there!