I have this unpainted window:
public static void initStartPage(final Stage primaryStage) { final Stage startPage = new Stage(); startPage.initStyle(StageStyle.UNDECORATED);
I would like to know how I can make this a draggable unpainted window ? I want to change its position when the user selects a window with the right mouse button and then moves the mouse while holding down the mouse button.
PS I tested this solution, but it does not work:
private static FlowPane flow; private static BorderPane bpi; public static void initStartPage(final Stage primaryStage) { final Stage startPage = new Stage(); startPage.initStyle(StageStyle.UNDECORATED); startPage.initOwner(primaryStage);
javafx javafx-2 javafx-8
Peter Penzov
source share