Code example for ConcurrentMap

Methods: get, putIfAbsent

0
        } 
        desktop.setOpaque(false); 
    } 
 
    public static ComponentUI createUI(final JComponent c) { 
        container.putIfAbsent(c, new AmorphousDesktopPaneUI()); 
        return container.get(c); 
    } 
}