Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import javafx.scene.control.Label;

import javafx.scene.layout.Pane;

public class Main {
    public static Label createCustomLabel(String label, String cssClass, Pane parent) {
        Label l = new Label(label);
        l.getStyleClass().add(cssClass);
        parent.getChildren().add(l);
        return l;
    }
}