Here you can find the source of getDefaultBorder()
private static Border getDefaultBorder()
//package com.java2s; import javax.swing.JTextField; import javax.swing.border.Border; public class Main { private static Border getDefaultBorder() { return new JTextField().getBorder(); }/*ww w .j a v a 2 s . co m*/ }