List of utility methods to do Swing UIManager
void | useLnf(String lnfClassName) Use supplied l&f. try { UIManager.setLookAndFeel(lnfClassName); } catch (UnsupportedLookAndFeelException e) { } catch (ClassNotFoundException e) { } catch (InstantiationException e) { } catch (IllegalAccessException e) { |
boolean | usingLnf(String lnfClass) Is the supplied l&f currently being used? String currentLnfClass = UIManager.getLookAndFeel().getClass().getName();
return currentLnfClass.equals(lnfClass);
|
boolean | usingMetalLnf() Is the Metal l&f currently being used? return usingLnf(MetalLookAndFeel.class); |
boolean | usingOcean() Returns true if we're using the Ocean Theme under the MetalLookAndFeel. if (isMetalLookAndFeel()) { return (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme); return false; |