left justify icon in JTable cell



Hi,
i'm not well versed in swing as yet and have a question related to
custome cell renderers.
I have a custom cell renerer that adds and icon to in cell based on a
condition. If the condition is met, the cell would contain both text
and the icon. My question is, is there a way to have the icon appear
left justified, while the text remains centered in cell?

My guess is i my might have to create a panel or something, but i was
hoping it was possible with a label or other lightweight
components..(is JPanel light weight)?

thanks much...

.



Relevant Pages