Bug ID: 7182370 - Properties for Retina Display Enhancement

Jeff Palmer jcpalmer at rochester.rr.com
Sat Jul 7 10:49:02 PDT 2012


Have submitted an enhancement bug to OpenJDK Java, based on some messages on the Java list.  There is two parts, one for turning hi res on for JRE based implementations.  The second for detection by all implementations.  Am reprinting since bug system is a poor mechanism for discussion.  Replying solely to the OpenJDK list is probably a good idea.  Here is what I submitted:

Description
----------------
When using the JRE version of Java 7, there needs to be a way to enable high resolution mode for retina displays. Am hearing reports things look good except for redrawing previously built images. 

This applies to applets as well, but does not apply to bundled Java apps.  How it might be  implemented may differ between JWS and applets though.

If this took the form of a system property, then they also could be specified in a jnlp as jvm args.  Suggest something like:  java2d.mac.setRetina=true / false
- - - - - -
An additional property like: java2d.mac.isRetinaHighRes might be good as well, If there can be no way of detecting whether if a retina display is there & enabled.  Both JRE & bundled apps could use this.  

Bundled apps also require the enabled part.  Unlike JRE, even though bundled apps can enabled it, I think the user could turn it off.

Justification
----------------
There is no way to turn on staying inside Java.  If there is a JNI way to do it, there is the side effect of requiring all-permissions.

On detection front, several experiments have failed to produce production quality side-effects of detection.

Severity
-----------
Some progress is possible without resolving this bug.



More information about the macosx-port-dev mailing list