• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Colors > System Colors

17.3. System Colors

System colors are a collection of standard colors that are pre-allocated by the SWT library. Because you do not allocate these colors, you should not call their dispose() method. The constants that are used to choose the color are implemented in the class SWT (as you would expect), and the following method, defined on the class Device, is used to access them.

getSystemColor (int colorConstant) Returns an instance of class Color, the predefined system color represented by the given color constant.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint