Java Color Value listUIColorResources()

Here you can find the source of listUIColorResources()

Description

list UI Color Resources

License

Apache License

Declaration

public static void listUIColorResources() 

Method Source Code


//package com.java2s;
/*//from   w w w . j av  a  2s  .c  o m
 *  Copyright 2009 Hiena Mp3 Player http://code.google.com/p/hiena-mp3-player/
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

import javax.swing.UIManager;
import javax.swing.UIDefaults;

import java.awt.Color;
import java.util.*;

public class Main {
    public static void listUIColorResources() {
        List colorProperties = new ArrayList();
        UIDefaults uid = UIManager.getDefaults();
        Enumeration e = uid.keys();
        while (e.hasMoreElements()) {
            Object key = e.nextElement();
            Object property = uid.get(key);
            if (property instanceof Color)
                colorProperties.add(key);
        }
        Collections.sort(colorProperties);
        Iterator it = colorProperties.iterator();
        while (it.hasNext())
            System.out.println("-SETTING- " + it.next());
    }
}

Related

  1. getTextPaneLabel(JScrollPane jsp, Color textColor)
  2. getTitleLineBorderColor()
  3. getUIColor(String code)
  4. getValidFieldColor()
  5. getXpHeaderColor(int type, boolean fill)
  6. setDefaultColor()