Beispiel #1
0
 /**
  * Gets the <code>defaultLightWeightPopupEnabled</code> property, which by default is <code>true
  * </code>.
  *
  * @return the value of the <code>defaultLightWeightPopupEnabled</code> property
  * @see #setDefaultLightWeightPopupEnabled
  */
 public static boolean getDefaultLightWeightPopupEnabled() {
   Boolean b = (Boolean) SwingUtilities.appContextGet(defaultLWPopupEnabledKey);
   if (b == null) {
     SwingUtilities.appContextPut(defaultLWPopupEnabledKey, Boolean.TRUE);
     return true;
   }
   return b.booleanValue();
 }
Beispiel #2
0
 /**
  * Sets the default value of the <code>lightWeightPopupEnabled</code> property.
  *
  * @param aFlag <code>true</code> if popups can be lightweight, otherwise <code>false</code>
  * @see #getDefaultLightWeightPopupEnabled
  * @see #setLightWeightPopupEnabled
  */
 public static void setDefaultLightWeightPopupEnabled(boolean aFlag) {
   SwingUtilities.appContextPut(defaultLWPopupEnabledKey, Boolean.valueOf(aFlag));
 }