コード例 #1
0
ファイル: JPopupMenu.java プロジェクト: benzonico/ruling_java
 /**
  * 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();
 }
コード例 #2
0
ファイル: JPopupMenu.java プロジェクト: benzonico/ruling_java
 /**
  * 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));
 }