Flicker on setting font

hey guys m getting problem of flickering when m setting font like thisFont f=new Font("Dialog",Font.ITALIC,12);setFont(f);so the output is flickering like the repaint has been called infinitelyplzz help out
[241 byte] By [ridhava] at [2007-11-27 1:30:32]
# 1

If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the posted code retains its original formatting.

camickra at 2007-7-12 0:31:55 > top of Java-index,Desktop,Core GUI APIs...