1

My JavaFX TableView looks something like this:

enter image description here

It would be so much more pleasing and efficient if the labels at the top were diagonal to save space.

I imagine it like so:

enter image description here

The goal is to make the column fit closely to the content despite a long header label.

Can it be done?

Brad Turek
  • 2,472
  • 3
  • 30
  • 56
  • 2
    This was asked a while ago, though I can't find it now. I think the consensus was that you would need to write a new `TableViewSkin` (and the user who posted the original question figured it wasn't worth the effort). It would, at a minimum, be a bit of a project... – James_D Sep 11 '17 at 21:12
  • I looked for a similar question, but didn't find anything either. – Brad Turek Sep 13 '17 at 18:47
  • [Found a similar question](https://stackoverflow.com/questions/42566684/javafx-angled-tableview-headers), with no answer. – Brad Turek Feb 21 '18 at 20:24
  • That was the one I was thinking of. – James_D Feb 21 '18 at 21:29

0 Answers0