how send varible with FXMLLoader
923877May 23 2012 — edited May 24 2012i have this code:
*private void showDialog() {*
*try {*
dialogStage = new Stage();
final FXMLLoader fxmlLoader = new FXMLLoader();
Parent marcas = FXMLLoader.load(getClass().getResource("../modales/marcas/marcas.fxml"));
dialogStage.setWidth(335);
dialogStage.setHeight(355);
dialogStage.initModality(Modality.APPLICATION_MODAL);
dialogStage.setScene(new Scene(marcas));
*dialogStage.setOnCloseRequest(new EventHandler<WindowEvent>() {*
*@Override*
*public void handle(WindowEvent arg0) {*
arg0.consume();
*if (isEditing()) {*
cancelEdit();
*}*
*}*
*});*
dialogStage.show();
*} catch (IOException ex) {*
Logger.getLogger(TextboxSearchCell.class.getName()).log(Level.SEVERE, null, ex);
*}*
*}*
but i need to send data to the contoller for load in a table.
how i could send data to the controller
i use javafx 2.1
jdk 7
thanks