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

Label font label size changes when moving the mouse around the scene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • None
    • javafx
    • None
    • Windows XP Pro, JavaFX beta 40

    Description

      I'm using JavaFX beta 40, and define a simple scene containing just one Label like this:


          @Override
          public void start(Stage stage) {
              Font f = new Font(53);
              Label lbl1 = LabelBuilder.create()
                      .text("Grezi:\nZUI with JavaFX\nand\nGroovy!")
                      .font(f)
                      .prefWidth(200)
                      .translateX(100)
                      .translateY(100)
                      .build();

              scene = SceneBuilder.create()
                  .width(800)
                  .height(700)
                  .root(lbl1)
                  .build();
              
              stage.setScene(scene);
              stage.setVisible(true);
          }

      (The complete source code is in attached file).

      Then, if you move the cursor mouse around the windows, then the label font size changes to something more little (the default font size I suppose). More precisely, when you move the cursor in and out the label.

      Attachments

        Issue Links

          Activity

            People

              dgrieve David Grieve
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: