0

when a JLabel's text does not completely fit into the label, it will be cut off and "..." is appended.

Can I somehow check if this has happened? Like: JLabel.isTextClipped()?

Andreas Fester
  • 36,091
  • 7
  • 95
  • 123
matthias
  • 1,938
  • 23
  • 51
  • 2
    I don't think there is such a method. But if you want to avoid _"clipping"_ use `.pack()` instead of setting sizes explicity – Paul Samsotha Jan 14 '14 at 10:19
  • @peeskillet: It _is_ possible, for [example](http://stackoverflow.com/a/3597688/230513), but it should't matter in a resizable container. – trashgod Jan 14 '14 at 12:07

0 Answers0