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
Post a Comment