import java.awt.*;
import javax.swing.*;

public class ColoredButton3 extends JFrame {

  public static void main(String[] args) {
    new ColoredButton3();
  }
 
  public ColoredButton3() {

	super("Colored Button");
	WindowUtilities.setJavaLookAndFeel();
//  WindowUtilities.setNativeLookAndFeel();
//  WindowUtilities.setMotifLookAndFeel();


	Container content = getContentPane();
	content.setLayout(new FlowLayout());

	JButton button = new JButton("Layout Manager With 'New Look And Feel'");
	button.setForeground(Color.WHITE);
	button.setBackground(Color.BLUE);
	button.setPreferredSize(new Dimension(400,26));	

	content.add(button);
    
	setSize(500, 300);
	setDefaultCloseOperation(EXIT_ON_CLOSE);
	setResizable(false);
    	setVisible(true);

  }

}

