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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • fx2.1
    • fx2.0
    • javafx
    • None
    • java6
      fx b41
      windows 7

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

      }

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

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

              Created:
              Updated:
              Resolved:
              Imported: