Example usage for javax.swing JPopupMenu getDefaultLightWeightPopupEnabled

List of usage examples for javax.swing JPopupMenu getDefaultLightWeightPopupEnabled

Introduction

In this page you can find the example usage for javax.swing JPopupMenu getDefaultLightWeightPopupEnabled.

Prototype

public static boolean getDefaultLightWeightPopupEnabled() 

Source Link

Document

Gets the defaultLightWeightPopupEnabled property, which by default is true.

Usage

From source file:Main.java

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

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