[英]JavaFx TabPane style on click
I used to develop my application in Swing.我曾经在 Swing 中开发我的应用程序。 But recently I have begun to use JavaFx.但是最近我开始使用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.我们可以看到选中的 Tab 比其他的大但是在 JavaFx 中,我们没有这个效果。
Question : How can I obtain the same Swing Tab style in JavaFx?问:如何在 JavaFx 中获得相同的 Swing 标签样式?
Problem solve.问题解决。
We can use CSS to make this style (Background-color, padding, :selected...)我们可以使用 CSS 来制作这种风格(背景色,填充,:选择...)
Sorry I'm a beginner in JavaFx.对不起,我是 JavaFx 的初学者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.