5

We have a rather complex application that needs as much screen real-estate as it can get, naturally the retina display Mac Books are excellent for this purpose.

However, it seems that in Swing those devices use points rather than pixels. They allow me to change the icons to higher resolution versions as discussed here. But since we do a lot of complex graphics and components overlays I want to just use "real pixels". To be clear I am not interested in fixing blurry images or icons (not practical in my case) just to disable the pixel doubling.

There is this interesting (albeit hacky) option I found thru this question.

Community
  • 1
  • 1
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • similar question was asked one-two week(s) back, no idea about – mKorbel Sep 18 '14 at 07:00
  • Odd, I couldn't find that one? Do you have a link? – Shai Almog Sep 18 '14 at 07:01
  • not I'm haven't, real reason I'm too lazy search for, only to remember (still empty 1_24Tb in my head, but without masking Q&A to URL) – mKorbel Sep 18 '14 at 07:04
  • Frustrating isn't it? Writing Swing code on Retina, we have a ton of pixels available but it's difficult to use them! Looking forward to a fix :-) – Jo Jo Jun 04 '15 at 05:55

1 Answers1

2

To my knowledge this is not possible as of JDK 1.8. The only workaround is to detect retina and use the scale affine transform when drawing. However, detecting retina seems to be a problem since the only option that seems to be available isn't on a per monitor case which is probably not a good solution: How can I detect whether a Mac has a Retina display from Java?

Community
  • 1
  • 1
Chen
  • 3,760
  • 1
  • 17
  • 21