Does anyone know to center data in a JTable? I'm using a TableModel but can't seem to figure out how to do this. I know if you add an ImageIcon to a table it is supposedly centered. Should you just try to trick the table into thinking that your
string is an ImageIcon?! That seems weird and messy. Surely, there is some simple way, I just can't find it. Also, I'd LIKE to make it so the user can't modify the widths of the columns but haven't figured this one yet either.
With Respect,
Matt DeLacey