Solved

Change frame/titlebar color of JInternalFrame

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

705 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