I have a TabPane like below,
TabPane
I want the text to be clipped at close button, similar to how browsers display the title like below.
I have tried css , -fx-text-overrun: clip; in .tab-pane and .tab class but not working as expected.
-fx-text-overrun: clip;
.tab-pane
.tab
How can i achieve this?
I am able to achieve the required L&F by setting the Label preferred width.
Label
.tab-label { -fx-pref-width : 150px; }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.