Hi Paul,
Unfortunately the examples weren't printed as I expected, so I will post them again as code (each will be in a different column):
At first I thought of using a DefaultTableCellRenderer to return a formatted
String of the original value (for example the result of String.format("$/hr %1$d") but that does not solve the alignment problem. I don't know any way to specify this kind of compound-justified alignment with a format String...
I was also thinking of having a custom TableCellRenderer that will return a JPanel with two labels: the first (left oriented) for the unit, and the second (right oriented) for the value. But I feel that is somehow overkilling for cell renderer.
I can't think of another solution and I feel that I missing something that will make my life easier (just with that, of course!
)
Do you have any suggestions?
Thanks,
Marcelo