import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.UIManager;
public class NimbusTest extends JFrame {
public NimbusTest() {
setSize(400, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(null);
JButton btn = new JButton("Click");
btn.setBounds(100, 200, 200, 50);
this.add(btn);
setVisible(true);
}
public static void main(String[] args) {
UIManager.put("nimbusBase",new Color(255,0,0));
UIManager.put("nimbusBlueGrey", new Color(0,255,255));
UIManager.put("control", new Color(0,0,0));
UIManager.put("text", new Color(255,0,0));
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch(Exception ex) {
}
new NimbusTest();
}
}