List of usage examples for javax.swing UIDefaults getUIClass
public Class<? extends ComponentUI> getUIClass(String uiClassID, ClassLoader uiClassLoader)
get(uidClassID)
must be the String
name of a class that implements the corresponding ComponentUI
class. From source file:net.sf.nmedit.jtheme.JTContext.java
public static boolean hasUIClass(JComponent component, UIDefaults defaults) { String uiClassID = component.getUIClassID(); if (uiClassID == null) return false; Object cl = defaults.get(UIDefaultsClassLoaderKey); ClassLoader uiClassLoader = (cl != null) ? (ClassLoader) cl : component.getClass().getClassLoader(); Class uiClass = defaults.getUIClass(uiClassID, uiClassLoader); return uiClass != null; }