Here you can find the source of getDefaultForeground()
public static Color getDefaultForeground()
//package com.java2s; import java.awt.Color; import javax.swing.UIManager; public class Main { /**//from www . java 2s.c om * Returns the default color for foreground in user's color scheme. * * @return the default color for foreground in user's color scheme. */ public static Color getDefaultForeground() { return UIManager.getColor("textText"); } }