5 Years
Discussion Span
Last Post by DavidKroukamp

There is no way u can do this.... You can create ur own title bar by overiding the original title bar. All you have to do is setUndecorated(true). This will remove title bar and you can place your custom title bar.

Votes + Comments
thanks... how can i create a titlebar with the same look and feel as windows?

Well to disable it as in make it no more visible thats a bit hard (maybe impossible) why not add a WindowListener and then have Iconified handler like so:

frame.addWindowListener(new WindowAdapter(){

      public void windowIconified(WindowEvent e){

this will react when the JFrame is minimized and make it not possible (make it visible instead if default setVisible(false).

Alternatively you may use a JDialog but that lacks a in-built maximize button

Edited by DavidKroukamp

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.