Code example for ConcurrentMap

Methods: containsKeygetput

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); 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java