Adding dynamically new tabs to a tab pane with a button
In most modern internet browsers it is very easy and intuitive how to open a new tab in the same window.
Usually there is a small button with a "+" at the right of all the tabs. When this button is clicked a new tab is created and it receives the focus.
What is the simplest way to mimic this behavior in a JavaFX application ?. I am thinking in trying to add a "fake" tab with a "+" symbol. Then I may find out when such tab is clicked, and on that event I could dynamically create a new tab and give it the focus.
Is this the correct way to do it ?. Any small example illustrating the best way to implement this would be greatly appreciated.