I have a function:
    public static void printOnLable(String str){
    try {
        labelAkcja.textProperty().setValue(str);
    } catch(Throwable e) {
        System.err.println(e);
        System.err.println("Cause = " + e.getCause());
    }
}
but when i want to call it
Controller.printOnLable("server started");
I get always an error
