Code example for Preferences

Methods: put

0
properties.remove(key);
    } 
    else 
    { 
      properties.put(key, LibSwingUtil.rectangleToString(value));
    } 
  } 
 
  public Rectangle get(final String key)
  { 
    final String value = properties.get(key, null);
    if (value == null)
    { 
      return null; 
    } 
    return LibSwingUtil.parseRectangle(value);
  } 
 
}