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

If we invoke impl_CSS_STYLEABLES() font of Text will be changed.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      java6
      fx b41
      windows 7

      Description

      To reproduce run following code with/without line Button.impl_CSS_STYLEABLES()

      /*
       * To change this template, choose Tools | Templates
       * and open the template in the editor.
       */

      package test.javaclient.shared;

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

      /**
       *
       * @author andrey
       */
      public class Sample extends Application {

          @Override
          public void start(Stage stage) throws Exception {
              Group g;
              Scene scene;
              stage.setScene(scene = new Scene(g = new Group(),300,300));
              g.setStyle("-fx-font: 14 Arial;");
              g.getChildren().add(new Text(20,20,"HelloHelloHello"));
      // Button.impl_CSS_STYLEABLES();
              stage.show();
          }
          public static void main(String[] args) {
              launch(args);
          }

      }

        Attachments

        1. with.jpg
          10 kB
          Andrey Nazarov
        2. Without.jpg
          10 kB
          Andrey Nazarov

          Activity

            People

            Assignee:
            dgrieve David Grieve
            Reporter:
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: