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

Win: Stage.setResizable(false) affects on component layout

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 8.1 64
      Radeon 7850

      Description

      Please, look at this code and screenshots.

      When

      primaryStage.setResizable(false);

      is uncommented, frame created with thin white lines on perimeter like on screenshot.

      When this line is commented, all looks fine (also on screenshot)

      Sorry, can't find where to add screenshot, this is code
      /////////////////////////////

      public class Main extends Application {

          final int W = 400;
          final int H = 300;

          @Override
          public void start(Stage primaryStage) throws Exception{

              primaryStage.setTitle("Hello World");

              StackPane root = new StackPane();
              Canvas canvas = new Canvas(W, H);

              root.getChildren().addAll(canvas);

              GraphicsContext graphicsContext = canvas.getGraphicsContext2D();
              graphicsContext.setFill(Color.BLACK);
              graphicsContext.fillRect(0, 0, W, H);

              primaryStage.setScene(new Scene(root, W, H));
              primaryStage.setResizable(false);
              primaryStage.show();
          }


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

      ////////////////////////////

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                atyukpiekjfx Anatoliy Tyukpiekov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: