Java tutorial
//package com.java2s; import java.awt.Font; import javax.swing.JTextField; public class Main { public static void plainTextField(JTextField textField) { textField.setFont(textField.getFont().deriveFont(Font.PLAIN)); } }