import java.lang.reflect.*;
import java.awt.SystemColor;

public class SystemColorTest2 {
  public static void main(String[] args) throws Exception {
    Class clz = SystemColor.class;
    Field[] fields = clz.getDeclaredFields();
    for(Field f : fields) {
      if (Modifier.isPublic(f.getModifiers())) {
        Object o = f.get(null);
        if (o instanceof SystemColor) {
          System.out.printf("%s: 0x%X%n",f.getName(),((SystemColor)o).getRGB());
        }
      }
    }
  }
}
