Solved

Change frame/titlebar color of JInternalFrame

Posted on 2004-08-12
6
445 Views
Last Modified: 2008-01-09
Well hi,

I've only just become a member of Expert Exchange and I'm a student for the Information Engineering education. My special interest (and goal for expertise in the future) is Java programming. Now I've got this thing I've been searching for on the net, but can't find it. I'd really like to know if it's possible to change the color of a standard JInternalFrame inside a JDesktopPane. Its default color (Windows XP look-and-feel) is blue, but I'd like it to be green.
Is there a class/method to do so, or do I have to (in some way) create my own look-and-feel for it?

Any help and/or directions much appreciated.

// Yuthura
0
Comment
Question by:Yuthura
  • 2
  • 2
6 Comments
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 11787230
I think setUI and UpdateUI will help you

Best Regards
Sudhakar
0
 
LVL 92

Accepted Solution

by:
objects earned 25 total points
ID: 11788846
UIManager.put("InternalFrame.activeTitleBackground", mycolor1);
UIManager.put("InternalFrame.inactiveTitleBackground", mycolor2);
0
 

Author Comment

by:Yuthura
ID: 11792046
Thanx guys, u helpt me out indeed.

Hopefully I can proof useful to others in the future as well.

Greetz,

// Yuthura
0
 
LVL 92

Expert Comment

by:objects
ID: 11868634
thanks mate :)
0
 

Author Comment

by:Yuthura
ID: 11868649
No prop.

Sorry it took so long, was on a holliday and forgot about it :-)
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
mapAB Challlenge 35 128
maven example error 3 54
mockito example issue 8 64
maven project error 5 48
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

863 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

20 Experts available now in Live!

Get 1:1 Help Now