[ https://issues.apache.org/jira/browse/NETBEANS-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013573#comment-17013573 ]
Eirik Bakke commented on NETBEANS-3468: --------------------------------------- I did some experiments with this. For retina icons to work in the main menu bar on Aqua/MacOS, the icon must be an ImageIcon based on a MultiResolutionImage. Any MultiResolutionImage implementation will do; it does not have to be an instance of BaseMultiResolutionImage. The main challenge is that MultiResolutionImage did not get introduced as a public API until Java 9 (prior to which it was located in sun.awt.image.MultiResolutionImage), and the NetBeans build system requires NetBeans sources to compile on Java 8. That could be solved with some reflection magic. > Make HiDPI (Retina) icons work in MacOS menu bar > ------------------------------------------------ > > Key: NETBEANS-3468 > URL: https://issues.apache.org/jira/browse/NETBEANS-3468 > Project: NetBeans > Issue Type: Improvement > Components: platform - Other > Affects Versions: 11.3 > Environment: MacOS with retina display > Reporter: Eirik Bakke > Priority: Minor > Labels: HiDPI > Attachments: menuicon_retina.png > > > HiDPI icons, introduced in NETBEANS-2614 and NETBEANS-2604, do not yet show > up in the correct resolution when used in the menu bar on MacOS. See the > attached screenshot (from a NetBeans Platform application). This should be > fixed. > Note that we have only so far introduced HiDPI icons for the "Undo" and > "Redo" actions. > Emilian Bold probably figured this out in his earlier experimental Retina > support branch; see RetinaMultiResolutionImage in > https://github.com/emilianbold/nextbeans/commit/0f99dba0c1b3e8e0bc4e7cec407b53d30e85ead1 > . If the solution involves implementing MultiResolutionImage, then make sure > not to do this on Windows (to avoid > https://bugs.openjdk.java.net/browse/JDK-8212226 ). -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists