Run code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class StageXY extends Application {
@Override
public void start(final Stage stage) throws Exception {
Button b = new Button("fff");
VBox vb = new VBox();
Button b2 = new Button("ddd");
VBox vb2 = new VBox();
vb.getChildren().addAll(b);
vb2.getChildren().addAll(b2);
stage.setScene(new Scene(vb, 300, 300));
Stage stage2 = new Stage();
stage2.setScene(new Scene(vb2, 400, 400));
stage2.show();
stage.show();
stage.setX(800);
stage.setY(800);
stage2.setX(800);
stage2.setY(800);
}
public static void main(String[] args) {
launch(args);
}
}
Issue1 (RT-19232) the stage2 is not showed.
Issue2: stage situated not in setted coordinates. As I see, it is situated in default coordinates.