Solved

Change frame/titlebar color of JInternalFrame

Posted on 2004-08-12
6
444 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 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 …

708 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

13 Experts available now in Live!

Get 1:1 Help Now