Rotate a Swing JLabel

后端 未结 4 1509
走了就别回头了
走了就别回头了 2020-12-31 20:42

I am currently trying to implement a Swing component, inheriting from JLabel which should simply represent a label that can be oriented vertically.

Begi

4条回答
  •  甜味超标
    2020-12-31 20:47

    I've had a play with this, it wasn't working very well initially because the label bounds were exactly square and caused components to the right of the label to shift and become obscured. But I then realised that it was because I am using JGoodies FormLayout. If you use this layout manager, make sure you set the column size to "preferred" not "default". HTH.

提交回复
热议问题