I try to add a borderpane in my gridpane with the method add() like that :
GridPane grid = new GridPane();
grid.getChildren().add(new BorderPane());
grid.getChildren().add(new BorderPane(), 1, 0); // ERROR HERE
But I receive this error :
error: no suitable method found for add(BorderPane,int,int) grid.getChildren().add(new BorderPane(), 1, 0); method Collection.add(Node) is not applicable (actual and formal argument lists differ in length) method List.add(Node) is not applicable (actual and formal argument lists differ in length) method List.add(int,Node) is not applicable (actual and formal argument lists differ in length) Note: C:\Users\OFN\Documents\NetBeansProjects\CryptionTest\src\fr\cryption\control\ExplorerPage.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
I searched for three hours on Google and Stackoverflow but there is no solution for my problem.
Here is the imports I used :
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
Do you have an idea ?
Thanks.