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

[Linux] incorrect windows positioning.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • fx2.1
    • javafx
    • 2.1.0b16.

      Run attached code:

      import javafx.application.Application;
      import javafx.scene.Group;
      import javafx.scene.Scene;
      import javafx.stage.Stage;

      public class CoordinatesIssue extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(final Stage stage) throws Exception {
              stage.setX(0);
              prepareSourceStage(stage);

              Stage stageTarget = new Stage();
              stageTarget.setX(600);
              prepareTargetStage(stageTarget);
          }

          private void prepareTargetStage(Stage stageTarget) {
              stageTarget.setScene(new Scene(new Group(), 700, 700));
              stageTarget.show();
          }

          private void prepareSourceStage(final Stage stage) {
              stage.setScene(new Scene(new Group(), 600, 700));
              stage.show();
          }
      }

      I see both scenes in a such way, so their right borders are the same as the right border of the screen size.

            lnerad Ľubomír Nerád (Inactive)
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: