Java Color Value getTextColor()

Here you can find the source of getTextColor()

Description

get Text Color

License

Open Source License

Declaration

public static Color getTextColor() 

Method Source Code

//package com.java2s;
/*//w  w  w .  j ava  2  s  .  c  om
 *  NimbusHelper.java
 *  (SwingOSC)
 *
 *  Copyright (c) 2005-2012 Hanns Holger Rutz. All rights reserved.
 *
 *   This software is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU General Public License
 *   as published by the Free Software Foundation; either
 *   version 2, june 1991 of the License, or (at your option) any later version.
 *
 *   This software is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *   General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public
 *   License (gpl.txt) along with this software; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *
 *   For further information, please contact Hanns Holger Rutz at
 *   contact@sciss.de
 */

import javax.swing.UIDefaults;

import java.awt.Color;

public class Main {
    private static UIDefaults nimbusDefaults;
    private static final Color defaultTextColor = Color.black;

    public static Color getTextColor() {
        final Color c = nimbusDefaults == null ? null : nimbusDefaults.getColor("text");
        return c == null ? defaultTextColor : c;
    }
}

Related

  1. getLightColor()
  2. getMediumDarkColor()
  3. getNimbusDisabledTextColor()
  4. getRolloverColor()
  5. getSubstanceColor(String name)
  6. getTextForegroundColor()
  7. getTextInactiveTextColor()
  8. getTextPaneLabel(JScrollPane jsp, Color textColor)
  9. getTitleLineBorderColor()