All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ardulink.gui.facility.LAFUtil Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.ardulink.gui.facility;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.UIManager.LookAndFeelInfo;

public final class LAFUtil {

	private LAFUtil() {
		super();
	}

	public static void setLookAndFeel(String lafName) throws ClassNotFoundException,
			InstantiationException, IllegalAccessException,
			UnsupportedLookAndFeelException {
		for (LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
			if (lafName.equals(laf.getName())) {
				UIManager.setLookAndFeel(laf.getClassName());
			}
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy