JPopupMenu: setDefaultLightWeightPopupEnabled(boolean aFlag) : JPopupMenu « javax.swing « Java by API






JPopupMenu: setDefaultLightWeightPopupEnabled(boolean aFlag)

 


import javax.swing.JPopupMenu;

public class Main {
  public static void main(String[] argv) throws Exception {
    boolean lwPopup = JPopupMenu.getDefaultLightWeightPopupEnabled(); // true

    // Globally use heavyweight components for all popup menus
    JPopupMenu.setDefaultLightWeightPopupEnabled(false);
  }
}

   
  








Related examples in the same category

1.JPopupMenu: add(JMenuItem menuItem)
2.JPopupMenu: addPopupMenuListener(PopupMenuListener lis)
3.JPopupMenu: addSeparator()
4.JPopupMenu: setLightWeightPopupEnabled(boolean aFlag)
5.JPopupMenu: show(Component invoker, int x, int y)