Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how send varible with FXMLLoader

923877May 23 2012 — edited May 24 2012
i 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
This post has been answered by twasyl on May 24 2012
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 21 2012
Added on May 23 2012
6 comments
453 views