Here you can find the source of getAlignBorder()
public static Border getAlignBorder()
//package com.java2s; import javax.swing.BorderFactory; import javax.swing.border.Border; public class Main { public static Border getAlignBorder() { return BorderFactory.createEmptyBorder(5, 0, 0, 0); }//from w ww . java2s. com }