Here you can find the source of getUnfocusedSelectionForeground()
public static Color getUnfocusedSelectionForeground()
//package com.java2s; //License from project: Open Source License import java.awt.Color; import javax.swing.UIManager; public class Main { private static Color unfocusedSelFg; /**//from www.jav a2 s .co m * Get the system-wide unfocused selection foreground color */ public static Color getUnfocusedSelectionForeground() { if (unfocusedSelFg == null) { //allow theme/ui custom definition unfocusedSelFg = UIManager.getColor("nb.explorer.unfocusedSelFg"); //NOI18N if (unfocusedSelFg == null) { //try to get standard shadow color unfocusedSelFg = UIManager.getColor("textText"); //NOI18N if (unfocusedSelFg == null) { //Okay, the look and feel doesn't suport it, punt unfocusedSelFg = Color.BLACK; } } } return unfocusedSelFg; } }