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!

How to get the controller's class of the a fxml file opened into a Tab?

m_ilioMar 31 2013 — edited Apr 1 2013
Hello.
First, sorry for my bad inglish it is not my language.

Introduction:
I am working in the skeleton of an enterprisse application in javafx. Usually (in the past) I used swing MDI form with InternalFrames. Searching in the web about how can do it that, I found that the MDI form's concept is obsolete, instead is recommended to use an tabpanel structure. I started to develop the aplication with this concept, but I have a question.

Scenario:
I have a Main Window with:
- Menu: To access the different options
- Tool Bar: To execute the common operations (open, save, edit, delete and print)
- TabPanel: To show the dashboard and the fxml files that is opened from the menu.
- Status Bar: To show some information.

[http://www.blueboxmicrosystems.com/fxml.png|See the image]

The Problem:
I dont know how to access controller's methods of the fxml file in the active Tab.

Note: I have an interface with the operations (open, save, edit, delete and print) and the controllers implements the interface.

The question:
How can I get the controller's class of the fxml file in active Tab in order to call the methods?

Regards,

Edited by: user10311523 on 31-mar-2013 20:36

Edited by: m_ilio on 01-abr-2013 5:40
This post has been answered by James_D on Apr 1 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2013
Added on Mar 31 2013
5 comments
1,514 views