Solved

Changing caption color of awindow

Posted on 1998-05-28
7
211 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 83
ArrayIndexOutOfBoundException 9 68
servlet requestdispatcher include and forward differences 1 24
MySQL  on Tomcat 8 30
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…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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.

896 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now