Thanks for the reply,
the problem is that I have already a cell renderer for that column that allows me to display it as currency. here is the code:
public class CurrencyCellRenderer extends DefaultTableCellRenderer {
private Format format;
public CurrencyCellRenderer() {
this.format = NumberFormat.getCurrencyInstance();
}
public void setValue(Object value) {
setText(format.format(value));
}
}
so how can I make it align ot the right.
Thanks
benbak
Use the "Code" formatting tags when posting code so the code is readable.
> so how can I make it align ot the right.
Check out the posting from above and incorporate the concepts of that renderer into your renderer. (ie. the DefaultTableCellRenderer extends JLabel so you just set the alignment in your constructor).