Class MacOSPopupFactory


  • public class MacOSPopupFactory
    extends javax.swing.PopupFactory
    Popup factory for Java 11 which forces heavyweight popups. Lightweight popups do not render correctly over AWT canvases on OSX.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.Popup getPopup​(java.awt.Component owner, java.awt.Component contents, int x, int y, boolean isHeavyWeightPopup)  
      • Methods inherited from class javax.swing.PopupFactory

        getPopup, getSharedInstance, setSharedInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MacOSPopupFactory

        public MacOSPopupFactory()
    • Method Detail

      • getPopup

        protected javax.swing.Popup getPopup​(java.awt.Component owner,
                                             java.awt.Component contents,
                                             int x,
                                             int y,
                                             boolean isHeavyWeightPopup)
                                      throws java.lang.IllegalArgumentException
        Overrides:
        getPopup in class javax.swing.PopupFactory
        Throws:
        java.lang.IllegalArgumentException