Dynamically set font in a JTable cell
Hi there,
i have a JTable, and a JTCombo box containing all the system fonts available. The JTable is made up of my own class called myCell which can be seen below. I have also implemented my own custom renderer. What i would like to do is when the user selects a new system font, the text that is then typed into the JTable to be of that font. If the system font is changed again, i would like any new text to be of the new font, and the old fonts remain the same (i hope that makes sense!) Anyway, im quite stuck about this - i have tried messing around with the cellrenderer but all the text in all the cells changes to the new font. Does anyone know how to do this? many thanks, Rupz
public myCell(int aRow,int aCol,Object someValue, TreeSet somecells, String aFormula){
row = aRow;
col = aCol;
value = someValue;
expression = aFormula;
references = somecells;
}

