Unfortunately, JavaFX 2.2 does not yet provide an API for controlling system window buttons.
Although you can achieve this by removing system controls with
primaryStage.initStyle(StageStyle.UNDECORATED)
and providing your own to maximize, close, etc.
You can find an example in the standard sample named Ensemble that follows the described approach: http://www.oracle.com/technetwork/java/javafx/samples/index.html
Sergey Grinev Oct 17 '12 at 14:21 2012-10-17 14:21
source share