How can I make the custom menu of close/minimize/maximize act like the default one ?
The Default menu can be docked on the right/left of the screen like split the screen on two parts , is there a way to make that happen ?
The Default windows 10 menu picture :

You create buttons and add an
Actionto each button.Actionyou would use thedispose()method on the frameActionsyou would use thesetExtendedState(...)method on the frame