BorderFactory.createSoftBevelBorder(BevelBorder.LOWERED, Color.lightGray, Color.yellow) : Swing « JDK 7 « Java

BorderFactory.createSoftBevelBorder(BevelBorder.LOWERED, Color.lightGray, Color.yellow)

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;

public class Test extends JFrame {
  public static void main(String[] argv) {
    Test window = new Test();
  public Test() {
    this.setBounds(100, 100, 200, 100);
    JPanel panel = new JPanel();
        Color.lightGray, Color.yellow));
      //  Color.lightGray, Color.yellow));
      //  Color.lightGray, Color.lightGray, Color.white,;

    this.setLayout(new FlowLayout());

    JButton exitButton = new JButton("Exit");

    exitButton.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent event) {


Related examples in the same category

1.Creating a varying gradient translucent window
2.Handling multiple file selection in the FileDialog class
3.Managing the Opacity of a Window
4.Managing the Shape of a Window
5.Managing Window types
6.Mixing heavyweight and lightweight components
7.New border types in Java 7:RaisedSoftBevelBorder
8.New border types in Java 7:LineBorder width
9.New border types in Java 7:LoweredSoftBevelBorder
11.Using the new JLayer Decorator for a password field
12.Managing extra mouse buttons and high resolution mouse wheels
13.Using the NumericShaper.Range enumeration to support the display of digits