Originally posted by Gopu Akraju:
Thanks for the suggestion. In the same example what you have mentioned
Is there any way to do like
JLabel already does that, except on the other side:
My label text is so... If you're not seeing it, then there may be other layout issues afoot.
If you want to change it to put the ellipsis on the left instead of the right, you can override
BasicLabelUI.layoutCL() but unfortunately it looks nontrivial to do so unless you happen to be using a fixed-width font.