java - Shorten a string in JTabel when cell is too small -


when cell small display whole string, shortens end adding '...'. instance: "this string" becomes "this is..." there way shorten @ beginning? "...a string".

thx!

jtable default uses jlabel rendering component, need tell label how shorten string. can implementing custom tablecellrenderer. perhaps can use left dot renderer starting point , extend it, if not suits needs.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -