Changing caption color of awindow

Window Caption color change:

      I need to change the caption color of the window, it is always displaying in blue color
when the window is active and in gray when it is inactive. I want to change caption color to Green when it is active.
Can anybody suggest how to change the caption color of the window.

Thanks

Shankar
Ravi052898Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
evijayConnect With a Mentor Commented:
Hi,

You can go to display properties in windows (Control Panel -->  Display --> Appearance) and Select item choice box as
Active Title bar and then select the color you want !!.

If you are using unix platform, i want the specific unix you are using for suggesting the tool and procedure.


0
 
Ravi052898Author Commented:
Edited text of question
0
 
evijayCommented:
In java, there is no way.

You can give the environment you are working in and based on it, you can use some desktop tools to set the caption color etc.,.
I can suggest the tool if you want.

0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Ravi052898Author Commented:
Please suggest the tool, but I a want solution that can be solved
by java program , I need to change the color of th caption  dynamically
0
 
dufortCommented:
How about implementing a Window class instead of a Frame class, and drawing bordures & caption by yourself? This is not so hard; the caption rectangle needs only to follow the movement of the mouse.

0
 
dufortCommented:
I am sorry but I tried what I said in the previous comment, and it can't work because Window class creates a modal window.

So the answer to your question is: you can't change the window's caption rectangle's color in Java. It is handled by the window manager.

You should think of creating alternative visual cues if you want the attention of the user.

0
 
imladrisCommented:
You could probably do it with a native method.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.