Java Swing Bevel Border border1(JComponent component)

Here you can find the source of border1(JComponent component)

Description

border

License

Open Source License

Declaration

public static void border1(JComponent component) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2010 Stefan A. Tzeggai.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * /*from   w  w w  .j  av  a  2  s . c  o  m*/
 * Contributors:
 *     Stefan A. Tzeggai - initial API and implementation
 ******************************************************************************/

import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.border.Border;

public class Main {
    final static Border border1 = BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED);

    public static void border1(JComponent component) {
        component.setBorder(border1);
    }
}

Related

  1. createBevelBorder(int type)
  2. createCompoundBevelBorder()
  3. createWidgetBorder()
  4. getDefaultBorder()