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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -