B4J Question Programmatically change active Tab [solved]

Art

Member
Licensed User
Longtime User
[SOLVED]

I'm sure this is simple but I couldn't find a way to insert in the mouse clicked button event [Sub btnUsar_MouseClicked (EventData As MouseEvent)] the code necessary to change from the actual pane to the other pane. Can you help? See image, please. Thank you.

(btnUsar is the orange button in the image, of course..)


---
Solved. Sorry. So easy.
In Properties Inspector I added JavaFX CSS Id 'tabpPrincipal' and then
<code>tabpPrincipal.SelectedIndex = 0</code>
Can I delete my post?
 

Attachments

  • JavaFX Scene Builder - inicio.fxml 2014-09-16 23.10.39.png
    JavaFX Scene Builder - inicio.fxml 2014-09-16 23.10.39.png
    324.5 KB · Views: 219
Last edited:
Top