Answer the question
In order to leave comments, you need to log in
How to make a new tab button on TabPane?
Hello. Faced difficulty when implementing adding tabs to TabPane.
Since most people are accustomed to creating tabs in the browser by clicking on the button that follows the last of the tabs in the panel, I decided to transfer this mechanic to my application for creating subprojects in it. But I still haven't figured out how to implement this when using standard JavaFX elements.
I would like to hear advice from more experienced colleagues.
Answer the question
In order to leave comments, you need to log in
Might just have an always empty fake bookmark on the right. Switching to it will mean opening a new tab with all your logic, and on the right, again creating a fake empty bookmark. To make the TabPane look, for example, the same as in chrome, probably won't work. Only if you completely write your own container.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question