ui/src/main/java/ucar/nc2/ui/util/SwingUtils.java
public static Object getUIDefaultOfClass(Class clazz, String property) {
      Object retVal = null;
      UIDefaults defaults = getUIDefaultsOfClass(clazz);
      List<Object> listKeys = Collections.list(defaults.keys());
      for (Object key : listKeys) {
         if (key.equals(property)) {
            return defaults.get(key);
         }
         if (key.toString().equalsIgnoreCase(property)) {
            retVal = defaults.get(key);
         }
      }
      return retVal;
   }
public static Object getUIDefaultOfClass(Class clazz, String property) {
      Object retVal = null;
      UIDefaults defaults = getUIDefaultsOfClass(clazz);
      List<Object> listKeys = Collections.list(defaults.keys());
      for (Object key : listKeys) {
         if (key.equals(property)) {
            return defaults.get(key);
         }
         if (key.toString().equalsIgnoreCase(property)) {
            retVal = defaults.get(key);
         }
      }
      return retVal;
   }
public static Object getUIDefaultOfClass ( Class clazz , String property ) { Object retVal = null ; UIDefaults defaults = getUIDefaultsOfClass ( clazz ) ; List < Object > listKeys = Collections . list ( defaults . keys ( ) ) ; for ( Object key : listKeys ) { if ( key . equals ( property ) ) { return defaults . get ( key ) ; } if ( key . toString ( ) . equalsIgnoreCase ( property ) ) { retVal = defaults . get ( key ) ; } } return retVal ; }
Convenience method for retrieving the UIDefault for a single property
of a particular class.

@param clazz the class of interest
@param property the property to query
@return the UIDefault property, or null if not found
Convenience method for retrieving the UIDefault for a single property of a particular class .