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