You can possibly disable it with unecorated JFrame (setUndecorated (true)) to get rid of the title bar.
Then you will create a layout with a tab filling the window, and then overlay the min / max / close buttons in the upper right corner.
If the tabbed panel is too inflexible, you will need to place the button bar on top, use the buttons to switch multiple content panels and make the tab yourself; as each button becomes active, it hides the current panel and displays the panel that belongs to it.
source share