Platinum Solutions Corporate Website


SWT Color Constants

The answer you entered to the math problem is incorrect.

Below is a table that lists the colors available as constants in SWT. Because these colors are frequently used in SWT development, I put this together as a quick color reference - all of the colors listed can be accessed by calling display.getSystemColor( SWT.COLOR NAME).

Much to my dismay, I couldn't find a rendered version like this anywhere in Eclipse's documentation; if you know of one, let me know by adding a comment.

Eclipse 3.2.1 M20060921-0945 Color Constants
COLOR_BLACK
COLOR_BLUE
COLOR_CYAN
COLOR_DARK_BLUE
COLOR_DARK_CYAN
COLOR_DARK_GRAY
COLOR_DARK_GREEN
COLOR_DARK_MAGENTA
COLOR_DARK_RED
COLOR_DARK_YELLOW
COLOR_GRAY
COLOR_GREEN
COLOR_INFO_BACKGROUND
COLOR_INFO_FOREGROUND
COLOR_LIST_BACKGROUND
COLOR_LIST_FOREGROUND
COLOR_LIST_SELECTION
COLOR_LIST_SELECTION_TEXT
COLOR_MAGENTA
COLOR_RED
COLOR_TITLE_BACKGROUND
COLOR_TITLE_BACKGROUND_GRADIENT
COLOR_TITLE_FOREGROUND
COLOR_TITLE_INACTIVE_BACKGROUND
COLOR_TITLE_INACTIVE_BACKGROUND
_GRADIENT
COLOR_TITLE_INACTIVE_FOREGROUND
COLOR_WHITE
COLOR_WIDGET_BACKGROUND
COLOR_WIDGET_BORDER
COLOR_WIDGET_DARK_SHADOW
COLOR_WIDGET_FOREGROUND
COLOR_WIDGET_HIGHLIGHT_SHADOW
COLOR_WIDGET_LIGHT_SHADOW
COLOR_WIDGET_NORMAL_SHADOW
COLOR_YELLOW

Comments

Anonymous (not verified) Wed, 1969-12-31 20:00

It is a nice collection. It was useful for me

Post new comment

Please solve the math problem above and type in the result. e.g. for 1+1, type 2.
The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.

More information about formatting options