public WindowButtons(final Stage stage) {
		super(4);
		this.stage = stage;
		this.getStyleClass().add("window-buttons");

		Button closeBtn = new Button();
		closeBtn.getStyleClass().add("window-close");
		closeBtn.setOnAction(new EventHandler<ActionEvent>() {
			@Override
			public void handle(ActionEvent actionEvent) {
				Platform.exit();
			}
		});

		Button minBtn = new Button();
		minBtn.getStyleClass().add("window-min");
		minBtn.setOnAction(new EventHandler<ActionEvent>() {
			@Override
			public void handle(ActionEvent actionEvent) {
				stage.setIconified(true);
			}
		});

		Button maxBtn = new Button();
		maxBtn.getStyleClass().add("window-max");
		maxBtn.setOnAction(new EventHandler<ActionEvent>() {
			@Override
			public void handle(ActionEvent actionEvent) {
				toogleMaximized();
			}
		});

		getChildren().addAll(closeBtn, minBtn, maxBtn);
	}