Here you can find the source of createEmptyBorder(int size)
public static Border createEmptyBorder(int size)
//package com.java2s; import javax.swing.BorderFactory; import javax.swing.border.Border; public class Main { public static Border createEmptyBorder(int size) { return BorderFactory.createEmptyBorder(size, size, size, size); }/*from w w w .ja v a 2 s. co m*/ }