Code example for ConcurrentMap

Methods: containsKey, get, put

0
        LookAndFeel.installBorder(desktopIcon, "DesktopIcon.border"); 
        LookAndFeel.installProperty(desktopIcon, "opaque", Boolean.FALSE); 
    } 
 
    public static ComponentUI createUI(final JComponent c) { 
        if (!container.containsKey(c)) { 
            container.put(c, new AmorphousDesktopIconUI()); 
        } 
        return container.get(c); 
    } 
}