Monday 15 April 2013

Java Color


Java basic colors are heavy and few.

eg.   setBackground(Color.orange);


But if you want your frames to match your OS colors you can access them;

eg.   setBackground(SystemColor.inactiveCaption);

http://nadeausoftware.com/node/105#UsingJavasSystemColors


Or even better yet use a hex code; 

eg.   setBackground(Color.decode(“#FFFF00”));

Original Post Oct 15th 2012

No comments:

Post a Comment