Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Changing caption color of awindow

Posted on 1998-05-28
7
Medium Priority
?
227 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
0
Comment
Question by:Ravi052898
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Author Comment

by:Ravi052898
ID: 1221683
Edited text of question
0
 
LVL 4

Expert Comment

by:evijay
ID: 1221684
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
 

Author Comment

by:Ravi052898
ID: 1221685
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:dufort
ID: 1221686
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
 
LVL 1

Expert Comment

by:dufort
ID: 1221687
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
 
LVL 16

Expert Comment

by:imladris
ID: 1221688
You could probably do it with a native method.

0
 
LVL 4

Accepted Solution

by:
evijay earned 200 total points
ID: 1221689
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question