Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I just copied your whole FXML and wrote the corresponding Controller in the corresponding package and got this result: <a href="http://puu.sh/4uZsk.png" rel="nofollow">http://puu.sh/4uZsk.png</a></p> <p>How to replicate:</p> <ul> <li>create new FXML Project (make sure you have JavaFX Lib included in your ClassPath or you need to use Java 8)</li> <li>create new package <code>lab001</code></li> <li>create a new class called <code>Main.java</code> with this content</li> </ul> <hr> <pre><code>public class Main extends Application { @Override public void start(Stage primaryStage) { try { Parent root = FXMLLoader.load(this.getClass().getResource("application.fxml")); Scene scene = new Scene(root,400,400); primaryStage.setScene(scene); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { launch(args); } } </code></pre> <ul> <li>create a new class called <code>InterFaceGraficaController</code> with this content</li> </ul> <hr> <pre><code>public class InterFaceGraficaController { @FXML Label label; @FXML ComboBox&lt;String&gt; combo; public InterFaceGraficaController() { System.out.println("init"); } @FXML private void adicionar() {} @FXML private void limpar() {} } </code></pre> <p>and add your given FXML, if you <strong>still</strong> getting errors, you want to <strong>pastebin</strong> your <strong>errorlog</strong> and <strong>edit your post</strong> to show your progress.</p> <p>Edit: Just to make sure; your controllers <strong>must have</strong> the functions you added in SceneBuilder, else it cannot bind them like <code>adicionar</code> in your case.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload