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!

Open tab by clicking a button. Is it possible?

biochemistry43Mar 20 2013 — edited Apr 2 2013
Greetings and blessings to all.

first overview ...

- I have a file called Estructura_General.fxml
- In this file I have included two files FXML (Barra_Estandar.fxml and Panel_Marcadores.FXML)
- FXML files are included in the following manner:
   
<HBox fx:id="herramientas"  prefWidth="1233.0">
<children>
        <fx:include source="Barra_estandard.fxml" />
</children>
</HBox>
....
<fx:define>
         <fx:include fx:id="marcadoresPanel" source="Panel_Marcadores.fxml" />
</fx:define>
-Panel_Marcadores.fxml has a TabPane. The TabPane has three Tabs.

I want to press a button that is contained in Barra_estandard.fxml, and to open the second tab (or I want)

Panel_Marcadores.fxml not loaded Estructura_General.fxml fixedly, but opens when you press a button.

Now I can make the panel opens when I press a button on Barra_Estandar.fxml, which I can not yet do is to open in a specific Tab.

Is there a way?

This image can help you understand what I want.

http://www.subeimagenes.com/img/opentab-signa-579256.html
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2013
Added on Mar 20 2013
2 comments
998 views