-3
package Test;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.Initializable;


public class TestController implements Initializable {


    @Override
    public void initialize(URL url, ResourceBundle rb) {

    }    

}

I want to make Constructor in this TestController Class

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

1

I created an empty Constructor for you.

package Test;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.Initializable;


public class TestController implements Initializable {

    //Empty Constructor
    public TestController()
    {

    }

    @Override
    public void initialize(URL url, ResourceBundle rb) {

    }    

}
M.Dan
  • 554
  • 1
  • 4
  • 16
  • What about "initialize" method?what is the difference between "TestController" and "initialize" method?.is "initialize" method also worked as a constructor? – Rafsan Babu Jun 17 '18 at 17:41
  • 1
    @RafsanBabu Hello again, this specific question has already been answered: https://stackoverflow.com/questions/34785417/javafx-fxml-controller-constructor-vs-initialize-method – M.Dan Jun 17 '18 at 23:41