title: JavaFx add Window-Control-Buttons to Menubar (IntelliJ like)
body: <p>Since IntelliJ version 2019.2 Jetbrains removed the titlebar from the IDE and put the minimize, maximize and close button of the window into the menubar. So far, I have not found out how to do so using javafx. Is there a way to instanciate a "WindowControlButtons"-Class, so I can easily add them to the menubar or do I have to add a buttongroup and style the buttons for each platform myself?</p>
  
  <p>Example how it shall look like on Windows:</p>
  
  <p><a href="https://i.stack.imgur.com/F4AiE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F4AiE.png" alt="example image"></a></p>