How to add any Component in the JFrame TitleBar
问题 How to add any Component like a JButton on the JFrame TitleBar in java swing. 回答1: I assume by "title bar" you think of the header with the window menu button, document or program title and buttons for (typical) maximize, minimize, close. The window borders are drawn by the operating system (whatever part, e.g. with XServer it would be a window manager most of the time) - usually. And this is what the user wants - usually. Then this part of the window is outside the reach of Swing, you need