Solved

Changing caption color of awindow

Posted on 1998-05-28
7
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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 100 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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 236
servlet example 17 59
ejb message driven bean mdb creation steps 2 34
batch vs regular insert in spring DAO 2 21
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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…

763 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