jdk/src/java.desktop/share/classes/javax/swing/UIDefaults.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 28533 aea5ffcd5b2b
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   165         Object value = getFromHashtable( key );
   165         Object value = getFromHashtable( key );
   166         return (value != null) ? value : getFromResourceBundle(key, null);
   166         return (value != null) ? value : getFromResourceBundle(key, null);
   167     }
   167     }
   168 
   168 
   169     /**
   169     /**
   170      * Looks up up the given key in our Hashtable and resolves LazyValues
   170      * Looks up the given key in our Hashtable and resolves LazyValues
   171      * or ActiveValues.
   171      * or ActiveValues.
   172      */
   172      */
   173     private Object getFromHashtable(Object key) {
   173     private Object getFromHashtable(Object key) {
   174         /* Quickly handle the common case, without grabbing
   174         /* Quickly handle the common case, without grabbing
   175          * a lock.
   175          * a lock.
  1179 
  1179 
  1180 
  1180 
  1181     /**
  1181     /**
  1182      * <code>LazyInputMap</code> will create a <code>InputMap</code>
  1182      * <code>LazyInputMap</code> will create a <code>InputMap</code>
  1183      * in its <code>createValue</code>
  1183      * in its <code>createValue</code>
  1184      * method. The bindings are passed in in the constructor.
  1184      * method. The bindings are passed in the constructor.
  1185      * The bindings are an array with
  1185      * The bindings are an array with
  1186      * the even number entries being string <code>KeyStrokes</code>
  1186      * the even number entries being string <code>KeyStrokes</code>
  1187      * (eg "alt SPACE") and
  1187      * (eg "alt SPACE") and
  1188      * the odd number entries being the value to use in the
  1188      * the odd number entries being the value to use in the
  1189      * <code>InputMap</code> (and the key in the <code>ActionMap</code>).
  1189      * <code>InputMap</code> (and the key in the <code>ActionMap</code>).