Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Detetct Retina Display on MacOSX
Detetct Retina Display on MacOSX [message #1791218] Tue, 26 June 2018 07:01 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
I would like to detect reliable a Retina display on MacOSX. Is there a standard method available in the SWT API?

Background: I have some Swing component fonts which I have to scale down on a Retina display.

So far I found only this suggestions:

https://stackoverflow.com/questions/20767708/how-do-you-detect-a-retina-display-in-java

https://stackoverflow.com/questions/40399643/how-to-find-real-display-density-dpi-from-java-code/40399909#40399909
Re: Detetct Retina Display on MacOSX [message #1791236 is a reply to message #1791218] Tue, 26 June 2018 13:39 Go to previous messageGo to next message
Eclipse UserFriend
Look at `Display#getDPI()` and `Monitor#getZoom()` (which is new to Photon / 4.8).
Re: Detetct Retina Display on MacOSX [message #1791364 is a reply to message #1791236] Thu, 28 June 2018 12:04 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Great, thanks for the answer. I will have a look.
Re: Detetct Retina Display on MacOSX [message #1791368 is a reply to message #1791236] Thu, 28 June 2018 12:16 Go to previous message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Great, thanks for the answer. I will have a look.
Previous Topic:Swing/SWT Integration without using JApplet
Next Topic:Is there a statement of support for Microsoft Edge in SWT Browser.
Goto Forum:
  


Current Time: Sun Nov 03 16:35:50 GMT 2024

Powered by FUDForum. Page generated in 0.02994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top