Java Swing Empty Border getRaisedBorder(int innerPadding)

Here you can find the source of getRaisedBorder(int innerPadding)

Description

get Raised Border

License

Apache License

Declaration

public static Border getRaisedBorder(int innerPadding) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.BorderFactory;

import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;

public class Main {
    public static Border getRaisedBorder(int innerPadding) {
        Border b1 = BorderFactory.createEmptyBorder(innerPadding, innerPadding, innerPadding, innerPadding);
        Border b2 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
        return BorderFactory.createCompoundBorder(b2, b1);
    }//w  w w  .j a  v  a2s. c om
}

Related

  1. getBigBorder()
  2. getDefaultEmptyBorder()
  3. getEmpty5Border()
  4. getEmptyBorder()
  5. getEmptyBorder(int width)
  6. makeEmptyBorderResource(int top, int left, int bottom, int right)
  7. padBorder(JComponent component, int top, int left, int bottom, int right)
  8. removeBorder(JComponent component)
  9. scrollView(Component component, Border border)