Java tutorial
//package com.java2s; import java.awt.Insets; import javax.swing.JTextField; public class Main { public static JTextField prepJTextField(JTextField field) { Insets insets = new Insets(4, 4, 4, 4); field.setMargin(insets); return field; } }