Java Utililty Methods Swing UIManager

List of utility methods to do Swing UIManager

Description

The list of methods to do Swing UIManager are organized into topic(s).

Method

voiduseLnf(String lnfClassName)
Use supplied l&f.
try {
    UIManager.setLookAndFeel(lnfClassName);
} catch (UnsupportedLookAndFeelException e) {
} catch (ClassNotFoundException e) {
} catch (InstantiationException e) {
} catch (IllegalAccessException e) {
booleanusingLnf(String lnfClass)
Is the supplied l&f currently being used?
String currentLnfClass = UIManager.getLookAndFeel().getClass().getName();
return currentLnfClass.equals(lnfClass);
booleanusingMetalLnf()
Is the Metal l&f currently being used?
return usingLnf(MetalLookAndFeel.class);
booleanusingOcean()
Returns true if we're using the Ocean Theme under the MetalLookAndFeel.
if (isMetalLookAndFeel()) {
    return (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme);
return false;