calculate the necessary SIZE of the font,
use fied.setFont(field.getFont().derive(Font.PLAIN, SIZE))
take a look at different derive() versions, which you might need to pass the unit for the size
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
thanks you so much guys i also have same problem, i did it having the field and font resize but this time the only problem is it was resized but the height of the Field at the back is still the default height giving me a border whenever i do another field next to it..
Last edited by codermalfunction; 01-28-2009 at 12:44 AM..