Click to See Complete Forum and Search --> : JTable and Fonts


Lance Robertson
March 17th, 1999, 10:34 AM
I'm trying to use the files to set up a table. I'm using the Cellmodels

on this site and multispantable but am unable to get the cell font. It

returns null when I use the call:


Font cellFont = cellAttFont.getFont(1,1);


Is there a reason or am I just using it wrong?

Anil Kumar
July 9th, 1999, 02:24 PM
If I understood your question correctly, you can get the font by getting the reference to the cell renderer. For examples, if the table is using default cell renderer, you can find out the font of Row 2 and