import java.util.List; import javafx.application.Application; import javafx.scene.text.Font; import javafx.stage.Stage; public class Label03 extends Application { String backgroundColor = "-fx-background-color: rgb(180,180,180)"; public void start(Stage stage) throws Exception { // Font defaultFont = Font.getDefault(); System.out.println( defaultFont ); // System.out.println( "---------------------" ); // List fontFamilies = Font.getFamilies(); for( int i=0 ; i< fontFamilies.size() ; i++ ){ System.out.println( fontFamilies.get(i) ); } } public static void main(String[] args) { launch(args); } }