tags:

views:

47

answers:

1

Normally a left-orientated JLabel shortens text at the right by adding periods, e.g. Hello wo.... Anyone knows an JComponent (TableCellRenderer is not sufficient) which can shorten text in the middle (Hel...rld), e.g. useful for displaying file names?

+1  A: 

The LeftDotRenderer displays the dots on the left. I know its not what you asked for, but you might be able to use the concepts in the code to create your own.

camickr