0

I'm currently in JavaFX training and it turns out I need an FXML file, all works perfectly:

  1. I can create the FXML file

  2. I can define my rootPane

  3. But when I want to add elements like <Label>, <Button>... these are not made available to me.

JAVA version: 12.0.2

IDE : Eclipse

Eclipse pluggin : e(fx)clipse

The images below will speak for themselves:

problem to solve image => desired solution

Slaw
  • 37,820
  • 8
  • 53
  • 80

1 Answers1

0

You probably need some import statements, such as <?import javafx.scene.control.TextField?>

Jonathan Rosenne
  • 2,159
  • 17
  • 27
  • Yes, but I can't do an import dynamically, like we do so easily with java => Declare our need, and Eclipse takes care of importing the necessary. –  Sep 08 '19 at 16:41
  • I suggest you try ` `. I am not sure about it, but it is worth trying. – Jonathan Rosenne Sep 10 '19 at 06:39