title: How can I customize the title bar on JFrame?
body: <p>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:</p>
  
  <pre><code>this.setUndecorated(true);
  this.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
  </code></pre>
  
  <p>But how do I customize it? Is there any <strong>UI delegates</strong> that I can override or do I have to implement my own title bar from scratch?</p>
  
  <p>I want something like Lawson Smart Office: <img src="https://www.istartedsomething.com/wp-content/uploads/2008/01/lawson_1l.jpg" alt="Lawson Smart Office"></p>