日期:2014-05-20  浏览次数:20627 次

有谁可以把全部常用颜色的名字列出来吗?
java 使用Color.RED这样的方式定义常用颜色,有谁可以把全部常用颜色的名字列出来吗?

------解决方案--------------------
Modifier and Type Field and Description
static Color black
The color black.
static Color BLACK
The color black.
static Color blue
The color blue.
static Color BLUE
The color blue.
static Color cyan
The color cyan.
static Color CYAN
The color cyan.
static Color DARK_GRAY
The color dark gray.
static Color darkGray
The color dark gray.
static Color gray
The color gray.
static Color GRAY
The color gray.
static Color green
The color green.
static Color GREEN
The color green.
static Color LIGHT_GRAY
The color light gray.
static Color lightGray
The color light gray.
static Color magenta
The color magenta.
static Color MAGENTA
The color magenta.
static Color orange
The color orange.
static Color ORANGE
The color orange.
static Color pink
The color pink.
static Color PINK
The color pink.
static Color red
The color red.
static Color RED
The color red.
static Color white
The color white.
static Color WHITE
The color white.
static Color yellow
The color yellow.
static Color YELLOW
The color yellow.

这里都有http://docs.oracle.com/javase/7/docs/api/java/awt/Color.html