简体   繁体   中英

JavaFx TabPane style on click

I used to develop my application in Swing. But recently I have begun to use JavaFx.

In Swing JTabPane we have this:

Swing 中的 JTabPane 样式 ]

In JavaFx TabPane we have this:

JavaFx 中的 TabPane 样式

We can see the selected Tab bigger than the other But in JavaFx, we don't have this effect.

Question : How can I obtain the same Swing Tab style in JavaFx?

Problem solve.

We can use CSS to make this style (Background-color, padding, :selected...)

Sorry I'm a beginner in JavaFx.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM