public Voctor<LookAndFeel > getLookAndfeel(){
Vector<LookAndFeel > supportedLaFs;
UIManager.LookAndFeelInfo[] installedLafs = UIManager
.getInstalledLookAndFeels();
for (UIManager.LookAndFeelInfo lafInfo : installedLafs) {
try {
Class lnfClass = Class.forName(lafInfo.getClassName());
LookAndFeel laf = (LookAndFeel) (lnfClass.newInstance());
if (laf.isSupportedLookAndFeel()) {
String name = lafInfo.getName();
System.out.println(lafInfo.getClassName());
supportedLaFs.add(laf);
}
} catch (Exception e) {
// If ANYTHING weird happens, don't add it
continue;
}
}
return supportedLaFs;
}