Hi All

I have been doing some coding to create Raster Labels for
annotating a wireframe object. While I was trying to find
ways of getting hold of a FontMetrics object, I noticed
that Text2D API uses Toolkit.getDefaultToolkit().getFontMetrics()
accessor to achieve the same. However, when I tried to use
the same function in my app., I get a *deprecation* warning
from the JVM. Is this method really not recommended ?

An alternative way is to get the FontMetrics object from
the graphics handle of the BufferedImage object. This
seems to work fine.

Thanks much to Raffi Kasparian for his reply and info. to my earlier
e-mail. I will see how the ImageComponent2D object can be
reused.

Thanks in advance if you have any comments

Raj Vaidya
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to