How can I customize the title bar on JFrame?

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-05-06T14:50:10Z Indexed on 2010/05/06 15:08 UTC
Read the original article Hit count: 207

Filed under:
|
|
|
|

I would like to have a customized title bar in my Java Swing desktop application. What is the best way to do that? I can use a "Swing-title bar" by using the following code in the constructor for my JFrame:

this.setUndecorated(true);
this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);

But how do I customize it? Is there any UI delegates that I can override or do I have to implement my own title bar from scratch?

I want something like Lawson Smart Office: Lawson Smart Office

Or like Trend Micro Internet Security: Trend Micro Internet Security

© Stack Overflow or respective owner

Related posts about java

Related posts about swing