Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Swing: Changing the font face

Hi! i'm doing a print function in swing...
i've some problem with changing the font style to be smaller or to another font type...can anyone give me some idea...here's the code :

g2.drawString(lblTitle.getText(), 0, fontHeight);
g2.drawString("Checked by :", 0, (int)pageHeight-55);
g2.drawString("............", 90, (int)pageHeight-55);

i want the size of the string to be smaller than the current size..how?
[465 byte] By [payung81] at [2007-11-11 8:47:30]
# 1 Re: Swing: Changing the font face
horey...I've already got the solution...i use Graphics.setFont()
payung81 at 2007-11-11 22:34:23 >