Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set JInternalFrame Background Color

843806Aug 29 2007 — edited Aug 29 2007
Hey Guys!

I've got the following problem. I've a JInternalFrame and I want to simply modify the background color of it, at runtime...

I've tried the following:
setBackground(Color.red);
getGlassPane().setBackground(Color.red);
getContentPane().setBackground(Color.red);
UIManager.put("control", new ColorUIResource(Color.red));
UIManager.put("InternalFrame.background", new ColorUIResource(Color.red));

Nothing changed anything!

Any idea?

Thanks & best regards,
Kristian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 26 2007
Added on Aug 29 2007
4 comments
366 views