Capturing the SystemColor

Urgently please let me know how to capture SystemColor?
jadhavvAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zicaiCommented:
What do you mean by SystemColor?
0
expertmbCommented:
hi,
 try this
    ClickButton.setBackground(new java.awt.Color(0, 130, 140));

     Color color = ClickButton.getBackground();
      System.out.println(color);

 u will get the RGB values ..

hope this will help u

good luck

mb...
0
heyhey_Commented:
expertmb:
you know that you can POST COMMENTS, don't you ?
0
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

jadhavvAuthor Commented:
Hi expertmb,


  This was not the answer I was looking for,anyway I appreciate your quick reply


  thanks
   
0
expertmbCommented:
>>expertmb:
 you know that you can POST COMMENTS, don't you ?

heyhey_
 if there exist any rule that I should post comments. if so let me know

mb...


 
 
0
heyhey_Commented:
etiquette.
0
comermCommented:
heyhey, please explain...

I thought that the purpose of this forum was to answer questions if possible. At what point should you submit an "answer" then?
0
heyhey_Commented:
I don't like to see this label
'Rejected Answer'

and as you can see yourself, this particular Answer even has nothing in common with the question.

=======

Rejected Answer
From: expertmb
Date: Friday, January 14 2000 - 02:29AM PST
hi,
 try this
    ClickButton.setBackground(new java.awt.Color(0, 130, 140));
     Color color = ClickButton.getBackground();
      System.out.println(color);
 u will get the RGB values ..
hope this will help u
good luck
mb...

=======

you'd better post comments, because:
1. you won't lock the question (more people will look at it)
2. you won't bother the questioner to reject your answer
3. usually your comment will be accepted as answer if it works.
4. .. I have some more things to say, but I'm tired ... have a nice weekend
0
herbie_bCommented:
jadhavv, what do you mean by capturing the SystemColor?

This is a class with static fields that holds values of system colors.  Those colors are also of type SystemColor, which is a subclass of Color, and it differs from Color in that RGB values are dynamically changed if the system colors are changed.
To access e.g. the border color for windows, use the public static field

java.awt.SystemColor.windowBorder

Hope this helps... I think it is the answer, but have posted is as a comment...

0
herbie_bCommented:
Forgot to mention one thing:

You can use the value of these fields anywhere you need a Color, since SystemColor is a subclass of Color.
0
heyhey_Commented:
>> I think it is the answer

I think that this is the answer too :)
0
herbie_bCommented:
So, jadhavv, do you accept this as an answer?

(am new to this site, don't know if a comment can be accepted as an answer, so I'll submit this as an answer... if it's not the answer you're looking for, reject it... but then I suggest you describe your problem in a more detailed way)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
herbie_bCommented:
jadhavv, PLEASE accept (or reject) my answer!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.