Java Swing LineBorder createThickInsetBorder()

Here you can find the source of createThickInsetBorder()

Description

create Thick Inset Border

License

Open Source License

Declaration

public static Border createThickInsetBorder() 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2014 Open Door Logistics (www.opendoorlogistics.com)
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3
 * which accompanies this distribution, and is available at http://www.gnu.org/licenses/lgpl.txt
 ******************************************************************************/

import java.awt.Color;

import javax.swing.*;
import javax.swing.border.Border;

public class Main {
    public static Border createThickInsetBorder() {
        return BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.DARK_GRAY, 2),
                BorderFactory.createEmptyBorder(5, 5, 5, 5));
    }/*  ww w  .ja v a 2  s  .  c  o  m*/
}

Related

  1. addDebugBorders(JPanel panel)
  2. changeBorder(JComponent field, Object fieldValue, PropertyChangeEvent e)
  3. createDebugBorder()
  4. createLineBorder()
  5. createPanelBorder()
  6. drawBorders(final JPanel panel)
  7. getBorderBlue()
  8. getDefaultLineBorder()
  9. getLineBorder()