Java Utililty Methods Swing Look and Feel

List of utility methods to do Swing Look and Feel

Description

The list of methods to do Swing Look and Feel are organized into topic(s).

Method

booleanisSystemLookAndFeel()
is System Look And Feel
String systemLookAndFeelClassName = UIManager.getSystemLookAndFeelClassName();
String currentLookAndFeelClassName = UIManager.getLookAndFeel().getClass().getName();
return systemLookAndFeelClassName.equals(currentLookAndFeelClassName);
booleanisUnderIntelliJLaF()
is Under Intelli J La F
return UIManager.getLookAndFeel().getName().contains("IntelliJ");
booleanisUnderWindowsClassicLookAndFeel()
is Under Windows Classic Look And Feel
return UIManager.getLookAndFeel().getName().equals("Windows Classic");
booleanisWebLookAndFeelInstalled()
is Web Look And Feel Installed
LookAndFeel laf = UIManager.getLookAndFeel();
return isWebLookAndFeel(laf.getClass().getName());
booleanisWindows()
is Windows
Object laf = UIManager.getLookAndFeel();
if (laf.getClass().getName().equals("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")) {
    return true;
return false;
booleanisWindowsClassicLookAndFeel()
Determines if current L&F is Windows Classic LookAndFeel
if (!isWindowsLookAndFeel()) {
    return false;
return (!isWindowsXPLookAndFeel() && !isWindowsVistaLookAndFeel());
booleanisWindowsClassicLookAndFeel()
Determines if current L&F is Windows Classic LookAndFeel
if (!isWindowsLookAndFeel()) {
    return false;
return (!isWindowsXPLookAndFeel() && !isWindowsVistaLookAndFeel());
booleanisWindowsLaF()
is Windows La F
return UIManager.getLookAndFeel().getName().contains("Windows");
booleanisWindowsLookAndFeel()
Returns whether the current applied look and feel is the WindowsLookAndFeel
return isLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
booleanisWindowsLookAndFeel()
is Windows Look And Feel
try {
    final Class<?> clsLaf = Class.forName("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    return clsLaf.isAssignableFrom(UIManager.getLookAndFeel().getClass());
} catch (ClassNotFoundException ex) {
    return false;