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
Solved

Change frame/titlebar color of JInternalFrame

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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…

839 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