title: How can I detect whether a Mac has a Retina display from Java?
body: <p>I've found a Swing image rendering bug which afflicts only Macs with Retina displays (<code>TYPE_INT_ARGB_PRE</code> <code>BufferedImages</code> fail to draw). I have an effective workaround (use <code>TYPE_INT_ARGB</code> images instead), but in order to apply it, I need to be able to detect whether the host machine is a Mac with a Retina display. Detecting whether the machine is a Mac is no problem, but how can I determine the display type?</p>