Java Swing Empty Border getEmptyBorder()

Here you can find the source of getEmptyBorder()

Description

get Empty Border

License

GNU General Public License

Declaration

private static Border getEmptyBorder() 

Method Source Code

//package com.java2s;
/***************************************
 *            ViPER                    *
 *  The Video Processing               *
 *         Evaluation Resource         *
 *                                     *
 *  Distributed under the GPL license  *
 *        Terms available at gnu.org.  *
 *                                     *
 *  Copyright University of Maryland,  *
 *                      College Park.  *
 ***************************************/

import javax.swing.border.*;

public class Main {
    private static Border _emptyBorder;

    private static Border getEmptyBorder() {
        if (_emptyBorder == null) {
            _emptyBorder = new EmptyBorder(1, 1, 1, 1);
        }/*from  ww  w.j a  v a 2s  .com*/
        return _emptyBorder;
    }
}

Related

  1. createInnerBorder(int size)
  2. getAlignBorder()
  3. getBigBorder()
  4. getDefaultEmptyBorder()
  5. getEmpty5Border()
  6. getEmptyBorder(int width)
  7. getRaisedBorder(int innerPadding)
  8. makeEmptyBorderResource(int top, int left, int bottom, int right)
  9. padBorder(JComponent component, int top, int left, int bottom, int right)