Here you can find the source of getUnfocusedSelectionBackground()
public static Color getUnfocusedSelectionBackground()
//package com.java2s; //License from project: Open Source License import java.awt.Color; import javax.swing.UIManager; public class Main { private static Color unfocusedSelBg; /**//from w w w .j a va 2s . com * Get the system-wide unfocused selection background color */ public static Color getUnfocusedSelectionBackground() { if (unfocusedSelBg == null) { //allow theme/ui custom definition unfocusedSelBg = UIManager.getColor("nb.explorer.unfocusedSelBg"); //NOI18N if (unfocusedSelBg == null) { //try to get standard shadow color unfocusedSelBg = UIManager.getColor("controlShadow"); //NOI18N if (unfocusedSelBg == null) { //Okay, the look and feel doesn't suport it, punt unfocusedSelBg = Color.lightGray; } //Lighten it a bit because disabled text will use controlShadow/ //gray if (!Color.WHITE.equals(unfocusedSelBg.brighter())) { unfocusedSelBg = unfocusedSelBg.brighter(); } } } return unfocusedSelBg; } }