

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage; 

public class TextPane extends Application { 
	@Override 
	public void start(Stage stage) {       
		Text text= new Text(50, 100, "a");
		text.setFont(Font.font("Wingdings", 20));

		//Creating a Group object  
		Group root = new Group(text);   

		//Creating a scene object 
		Scene scene = new Scene(root, 600, 300);  

		//Setting title to the Stage 
		stage.setTitle("Wingdings Test"); 

		//Adding scene to the stage 
		stage.setScene(scene); 

		//Displaying the contents of the stage 
		stage.show(); 
	}      
	public static void main(String args[]){ 
		launch(args); 
	} 
	
}