I want to add a new button with a question mark icon to the left of the maximize, hide, and close buttons. how to do it (as in the picture)?
You need to create a custom RootPane / TitleBar.
That means you need to set the JFrame to unecorated and then set your own instance, which extends RootPane to your JFrame
It is difficult to change your own title bar because it comes from the operating system. But you can remove your own header line setUndecorated(true); and create your own title bar. See a simple tutorial here
setUndecorated(true);
OR
You can see another way in substance in style
Source: https://habr.com/ru/post/1208466/More articles:The union core.logic matches the value on the map, but not the key - clojureHow to resolve java.lang.NoClassDefFoundError: org / aopalliance / aop / Advice error? - javaHow to rename multiple columns in a Reset index using Pandas - pythonpcolormesh with masked invalid values ββ- pythonCheck availability (recall) for the application - androidConfiguring MySQL 5.6 using Macports - mysqlKnex migration settlement fails with foreign key error - javascriptAdding a virtual directory to an Azure site using Powershell - powershellhow to combine option in scala - scalaWhat happens if you stop pressing Git? - gitAll Articles