Java tutorial
//package com.java2s; import java.awt.Color; import javax.swing.JTextField; public class Main { public static Color getTextBackgroundColor() { return new JTextField().getBackground(); } }