Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117349

[Linux] the second stage is not showed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • 2.1.0b10
      OpenJDK7
      Ubuntu linux 10.04

      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);
          }
      }

      Issue: I don't see stage2.

            msladecek Martin Sládeček
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: