I am still new to javaFX. In my code I need to get location and size of tab header, but I can't find any property or function which return its size or location.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I don't understand your question properly, but generally you can use the lookup function to get the .tab-header-area CSS selector which is actually a
StackPane
.The output
If you want to get the information about the individual tabs:
and the output
I have used the localToScene function with the parameter of the local bounds of the
StackPane
to get the coordinates relative to theScene
.Note: Lookup is not guaranteed to work, until CSS has been applied to the
Scene
.