I have an undeclared stage. I would like it to be minimized when its icon on the Windows 7 taskbar clicked. How can I achieve this?
public void popStage(Parent view, Dimension d) { Scene scene = new Scene(view); stage.initStyle(StageStyle.UNDECORATED); stage.initStyle(StageStyle.TRANSPARENT); stage.initModality(Modality.WINDOW_MODAL); StageDraggable.stageDraggable(view, stage); stage.getIcons().add(new Image(Resources.getBrickbreaker())); stage.setScene(scene); stage.setWidth(d.getWidth()); stage.setHeight(d.getHeight()); stage.show(); }
source share