We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Changing caption color of awindow

Ravi052898
Ravi052898 asked
on
Medium Priority
257 Views
Last Modified: 2010-04-16
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
Comment
Watch Question

Author

Commented:
Edited text of question

Commented:
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.

Author

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

Commented:
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.

Commented:
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.

Commented:
You could probably do it with a native method.

Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.