JInternalFrame change look and feel

Hi,

I would like to change the look and feel of the JInternalFrame , that I'm using in my program. By default it uses the look defined by java swing, but I want to use the Windows style.

I found many example for JFrame but there is no example for the internal frames. I think I have to use the InternalFrameUI set/get methods but I'm not sure how to do this.

So is there some examples on the web or may be someone can give me here an example? :)

Regards,

Anton

[501 byte] By [anton_toneva] at [2007-11-27 8:50:35]
# 1

If I'm not wrong, JInternalFrames inherit implicitly the L&F of the JFrame they are in. See these images taken from the Swing Guide:

http://java.sun.com/docs/books/tutorial/figures/ui/ui-InternalFrameW.png

http://java.sun.com/docs/books/tutorial/figures/ui/ui-InternalFrameM.png

So you have just to set the Windows L&F to the JFrame as in the examples you already found.

java_knighta at 2007-7-12 21:02:02 > top of Java-index,Desktop,Core GUI APIs...