Thursday 15 April 2010

javafx 2 - How to change tabs' strings orientation? -


Together with tabs of Taben, tabs with the tabs at the top of the tabs rotate headers and strings and have vertical orientation. Is there any way to use tabpay with tabs / tabs horizontally right / left side tabs?

Put a string as a graphic node. The graphic node can be rotated (TabApp's rotated graphic property)

Specifically, tab. Tab instead of the sit-in text ("text") .Setgraphic (use new label ("text") , And look at the TabPane.rotateGraphic property.

If you want to implement through fxml: so yes, this is possible. To rotate the attribute, the graphic of the tabpan, if necessary, and tab Properties of Graphic A new instance of the label There is a need to set up, and that is everything. Mostly you can do this via java code, you can repeat it through fxml.

Talking about tab minwood - I think You should see compelling expressions here: In particular, I think you should be interested in the maximum () method - You need to have the maximum width of all tabs.

No comments:

Post a Comment