In the post Java – How to draw a string on a jLabel icon I shown how to draw a string into a Graphics2D using Java. But, in this case, the text you are drawing is aliased.
To apply antialiasing to the text to draw, you have to set the rendering hints.
It's really simple, before calling the drawString method, call the following method:
not more, your text will be antialiased.