Java tutorial
//package com.java2s; import java.awt.Component; import javax.swing.SwingUtilities; import javax.swing.UIManager; public class Main { public static void lookWindows(Component comp) { UIManager.LookAndFeelInfo[] looks = UIManager.getInstalledLookAndFeels(); for (UIManager.LookAndFeelInfo look : looks) { if (look.getClassName().matches("(?i).*windows.*")) { try { UIManager.setLookAndFeel(look.getClassName()); // UIManager.put("ProgressBar.background", Color.DARK_GRAY); // UIManager.put("ProgressBar.foreground", Color.DARK_GRAY); // UIManager.put("ProgressBar.selectionBackground",Color.DARK_GRAY); // UIManager.put("ProgressBar.selectionForeground",Color.DARK_GRAY); // UIManager.setLookAndFeel("de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel"); // UIManager.put("Synthetica.window.opaque", false); // UIManager.put("Synthetica.window.shape", ""); // UIManager.put("Panel.background", Color.decode("#a5ddfb")); // UIManager.put("RadioButton.background", Color.decode("#a5ddfb")); // UIManager.put("CheckBox.background", Color.decode("#a5ddfb")); // UIManager.put("MenuBar.background", Color.decode("#a5ddfb")); SwingUtilities.updateComponentTreeUI(comp); return; } catch (Exception e) { e.printStackTrace(); } } } } }